Add stdout redirection defaults to `dlog.conf`
[platform/core/system/dlog.git] / configs / dlog.conf
1 # Lines starting with # are comments and are ignored.
2 # Empty lines are also ignored.
3 # Every other line is a config value and has to be in key=value format
4 # Maximum key length is currently 31 bytes and maximum value length is 255
5
6 ##### Settings used by the logging library
7
8 # Whether logging happens to the `main`, `radio`, and `system` (NOT `apps`!) buffers.
9 # Deprecated, prefer `enable_*` (see below).
10 #plog=1
11
12 # Whether logging happens to the relevant buffer. Overrides `plog`.
13 # Note that the buffer is still there, just libdlog doesn't send logs.
14 enable_main=1
15 enable_radio=1
16 enable_system=1
17 enable_apps=1
18
19 # Disables stdout redirection for given buffer. No effect on "regular" logs.
20 stdout_enable_main=1
21 stdout_enable_radio=1
22 stdout_enable_system=1
23 stdout_enable_apps=1
24
25 # enable_kmsg = 1 # DOESN'T WORK! KMSG is not a libdlog-populated buffer. See below for `handle_kmsg` instead.
26 enable_critical=1
27
28 # these two are not full buffers, they are just log sinks that redirect to the 'apps' buffer.
29 enable_dotnet_api=1
30 enable_native_api=1
31
32 # Debugmode - whether write platform debug log or not
33 # If disabled, logs at priority levels DEBUG and below - this means also VERBOSE - are completely dropped
34 debugmode=1
35
36 # Limiter - whether it's enabled and the rules (check the documentation for how to create rules).
37 limiter=1
38 limiter|*|*=allow
39 # A flag indicating if apps/events buffer entries are always checked against static/dynamic limiter rules
40 limiter_apply_to_all_buffers=1
41
42 # dynamic config_path - specifies the path to a DIRECTORY to enable dynamic runtime config changes (use dlogctl for control)
43 dynamic_config_path=/run/dlog/filters.d/
44
45 # Whether secure printing is enabled.
46 # If this setting is set to 0, secure logs
47 # are dropped and don't go into the buffer.
48 enable_secure_logs=1
49
50 ##### Settings used by the logging daemon
51 # See also 20-pipe.conf for more info
52
53 # Unused sockets.
54 kmsg=:
55 syslog=:
56
57 # Sockets that all programs connect to to receive a logging pipe.
58 kmsg_conn_sock=/run/dlog/kmsg.conn
59 syslog_conn_sock=/run/dlog/syslog.conn
60
61 # Sockets that administrative programs connect to to manipulate the daemon.
62 kmsg_ctl_sock=/run/dlog/kmsg.ctl
63 syslog_ctl_sock=/run/dlog/syslog.ctl
64
65 # Permissions for the relevant sockets.
66 kmsg_conn_sock_rights=0222
67 syslog_conn_sock_rights=0222
68
69 kmsg_ctl_sock_rights=0220
70 syslog_ctl_sock_rights=0220
71
72 # Size (in bytes) of internal cyclic buffers.
73 kmsg_size=1048576
74 syslog_size=1048576
75
76 # link to /dev/log even if systemd did not pass the socket to logger (default 0)
77 #syslog_force=1
78
79 # Whether the buffer is handled. This means the buffer is not read by the daemon.
80 # This only affects some "external" buffers not populated by libdlog, currently only kmsg.
81 handle_kmsg=1
82
83 # epoll delay, meaning how often the daemon wakes up to do bookkeeping
84 # and flush passive logging files when no new logs are incoming.
85 # Higher values mean lower CPU usage, but can also mean some log delay
86 # for continuous dlogutil instances.
87 epoll_time_ms=1000
88
89 # Syslog handling currently disabled in the daemon - not needed in Tizen.
90 #dlog_logger_conf_syslog=dlogutil -b syslog -r 256 -n 1 -f /var/log/dlog/syslog -v recv_realtime
91
92 ##### Settings used by dlogutil
93
94 # Sorting time window (in milliseconds). Proportional to sorting quality, but also delay.
95 # Defaults to 1000
96 util_sorting_time_window=1000
97
98 # Sorting buffer size (in entries). Larger values heavily increase performance demands but also
99 # lower the chance a log gets printed out of requested order. The whole sorting container gets
100 # allocated at once on start so avoid large values. This value gets overridden by `-u`, can be
101 # increased by `-t` if it is larger, and is completely ignored when the requested sorting order
102 # agrees with what the source provides.
103 #util_sorting_buffer_size=131072
104
105 # Default output format. This applies both to explicit dlogutil calls and
106 # persistent logging (i.e. writing to a file defined in daemon config).
107 # By default this is brief, but this will work even if the option is not provided explicitly.
108 #util_default_format=brief
109
110 # Deduplication blocks logs within the certain period of time (interval_millisec) starting from last_millisec.
111
112 # Block logs when neighbouring logs have the same content. It is quite simple deduplication,
113 # some logs could be repeated, on the other hand it is really fast.
114 # ABBBABBBAAACC (during one interval) -> ABABAC
115 # deduplicate_method=only_identical_neighbours
116
117 # Block all repeated logs within the time window. It is more precise in deduplication, but it
118 # takes more time and allocates more memory.
119 # ABBBABBBAAACC (during one interval) -> ABC
120 # deduplicate_method=all_identical_logs
121
122 # Any other value results in no deduplication. This is the default
123 deduplicate_method=
124
125 # One can also specify how long the time window is - "deduplicate_interval_ms" should be used.
126 deduplicate_interval_ms=1
127
128 # Failed log stashing. Allows the log sending application to take an action when they fail to send a log.
129 # For example, on pipe backend, this can happen when the daemon dies or can't handle the logs being received.
130 # Can be "critical" to store failed logs in the critical log file, or "" to disable the feature (default).
131 stash_failed_log_method=