]> git.ipfire.org Git - thirdparty/suricata.git/commit
logging: create log directories when needed
authorMats Klepsland <mats.klepsland@gmail.com>
Tue, 14 Feb 2017 09:32:33 +0000 (10:32 +0100)
committerVictor Julien <victor@inliniac.net>
Thu, 6 Apr 2017 14:19:45 +0000 (16:19 +0200)
commitffbf8cec162c9f6c77663d4df22e17bd5f8b5a01
treeb23946644354a1a6cb9bb5eb9f5bc5c1813ef363
parent47a5b493d748e899c478ec7f75c4858fee4552ee
logging: create log directories when needed

Recursively create new log directories when needed. This makes it
possible to use date modifiers in the file path to create
directories based on date, e.g.:

  /var/log/suricata/2017/02/14/
src/util-logopenfile.c