mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10:38:20 +00:00
Merge remote-tracking branch 'origin/topic/awelzel/2120-logdir-leftover'
* origin/topic/awelzel/2120-logdir-leftover: sqlite default-logdir test: Remove ls ./logs baseline logging/sqlite: Recognize Log::default_logdir and place files there if set logging: Introduce Log::default_logdir deprecate LogAscii::logdir and per writer logdir logging/ascii: Fix .shadow paths when using LogAscii::logdir
This commit is contained in:
commit
691b099de1
28 changed files with 707 additions and 39 deletions
|
@ -26,6 +26,14 @@ export {
|
|||
## Default writer to use if a filter does not specify anything else.
|
||||
const default_writer = WRITER_ASCII &redef;
|
||||
|
||||
## Default logging directory. An empty string implies using the
|
||||
## current working directory.
|
||||
##
|
||||
## This directory is also used for rotated logs in cases where
|
||||
## :zeek:see:`Log::rotation_format_func` returns a record with
|
||||
## an empty or unset ``dir`` field.
|
||||
const default_logdir = "" &redef;
|
||||
|
||||
## Default separator to use between fields.
|
||||
## Individual writers can use a different value.
|
||||
const separator = "\t" &redef;
|
||||
|
|
|
@ -57,7 +57,10 @@ export {
|
|||
## Define the default logging directory. If empty, logs are written
|
||||
## to the current working directory.
|
||||
##
|
||||
const logdir = "" &redef;
|
||||
## This setting is superseded by :zeek:see:`Log::default_logdir`. The
|
||||
## latter applies to all file writers and also interacts better with
|
||||
## log rotation.
|
||||
const logdir = "" &redef &deprecated="Remove in v6.1. Use 'Log::default_logdir'.";
|
||||
|
||||
## Format of timestamps when writing out JSON. By default, the JSON
|
||||
## formatter will use double values for timestamps which represent the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue