From 1838418b9193140f6ba5f5716884b62aad7b662d Mon Sep 17 00:00:00 2001 From: Siri Hansen Date: Wed, 3 Oct 2018 13:00:41 +0200 Subject: [logger] Start using handler callback changing_config/3 in built-in handlers The new parameter to this function, SetOrUpdate, indicates how unspecified configuration data fields shall be set. The rule is that if SetOrUpdate equals set, then default values shall be used, and if SetOrUpdate equals update, then existing configuration values shall be used. Consequently, these examples now apply to logger_std_h and logger_disk_log_h: set_handler_config(default, config, #{sync_mode_qlen => 20}) sets the value of sync_mode_qlen to 20, and resets all other (writable) fields in the config map to their default values. update_handler_config(default, config, #{sync_mode_qlen => 20}) sets the value of sync_mode_qlen to 20, and leaves all other fields in the config map unchanged. --- lib/kernel/doc/src/logger_disk_log_h.xml | 10 ++++++++++ 1 file changed, 10 insertions(+) (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 dfe2ab3275..d9b941a0a9 100644 --- a/lib/kernel/doc/src/logger_disk_log_h.xml +++ b/lib/kernel/doc/src/logger_disk_log_h.xml @@ -66,6 +66,10 @@ corresponds to the name property in the dlog_option() datatype.

+

The value is set when the handler is added, and it can not + be changed in runtime.

+

Defaults to the same name as the handler identity, in the + current directory.

type @@ -73,6 +77,8 @@ corresponds to the type property in the dlog_option() datatype.

+

The value is set when the handler is added, and it can not + be changed in runtime.

Defaults to wrap.

max_no_files @@ -82,6 +88,8 @@ corresponds to the MaxNoFiles element in the size property in the dlog_option() datatype.

+

The value is set when the handler is added, and it can not + be changed in runtime.

Defaults to 10.

The setting has no effect on a halt log.

@@ -93,6 +101,8 @@ corresponds to the MaxNoBytes element in the size property in the dlog_option() datatype.

+

The value is set when the handler is added, and it can not + be changed in runtime.

Defaults to 1048576 bytes for a wrap log, and infinity for a halt log.

-- cgit v1.2.3