From b9d2cb688e562d200663bdbedfa65adc5a29aeae Mon Sep 17 00:00:00 2001 From: Siri Hansen Date: Fri, 8 Jun 2018 14:18:36 +0200 Subject: [logger] Update documentation --- lib/kernel/doc/src/logger_disk_log_h.xml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'lib/kernel/doc/src/logger_disk_log_h.xml') diff --git a/lib/kernel/doc/src/logger_disk_log_h.xml b/lib/kernel/doc/src/logger_disk_log_h.xml index 20b49b8ca0..63c29cb010 100644 --- a/lib/kernel/doc/src/logger_disk_log_h.xml +++ b/lib/kernel/doc/src/logger_disk_log_h.xml @@ -44,7 +44,7 @@ the handler configuration.

The default standard handler, logger_std_h, can be - replaced by a disk_log handler at startup of the Kernel application. + replaced by a disk_log handler at start up of the Kernel application. See an example of this below.

The handler has an overload protection mechanism that will keep the handler process and the Kernel application alive during a high load of log @@ -60,7 +60,7 @@ , as well as handler specific parameters.

The settings for the disk_log log file should be specified with the key disk_log_opts. These settings are a subset of the disk_log - datatype + data type dlog_option().

Parameters in the disk_log_opts map:

@@ -81,7 +81,7 @@ log.

Specific configuration for the handler (represented as a sub map) - is specified with the key logger_disk_log_h. It may contain the + is specified with the key config. It may contain the following parameter:

filesync_repeat_interval @@ -93,7 +93,7 @@ since the last sync. The default value is 5000 milliseconds. If no_repeat is set as value, the repeated sync operation is disabled. The user can also call the - disk_log_sync/1 + sync/1 function to perform a disk_log sync.

There are a number of other configuration parameters available, that are @@ -117,7 +117,7 @@ logger:add_handler(my_disk_log_h, logger_disk_log_h, type => wrap, max_no_files => 4, max_no_bytes => 10000}, - logger_disk_log_h => + config => #{filesync_repeat_interval => 1000}}).

In order to use the disk_log handler instead of the default standard @@ -125,14 +125,14 @@ logger:add_handler(my_disk_log_h, logger_disk_log_h, use disk_log. Example:

erl -kernel logger '[{handler,default,logger_disk_log_h, - #{ disk_log_opts => #{ file => "./system_disk_log"}}}]' + #{disk_log_opts => #{file => "./system_disk_log"}}}]' - + Writes buffered data to disk.

Write buffered data to disk.

@@ -143,9 +143,9 @@ erl -kernel logger '[{handler,default,logger_disk_log_h,
See Also -

logger(3)

-

logger_std_h(3)

-

disk_log(3)

+

logger(3), + logger_std_h(3), + disk_log(3)

-- cgit v1.2.3