| SASL(Application) | Ericsson AB | SASL(Application) |
NAME
SASL Application
DESCRIPTION
Description
The SASL application provides the following services:
NOTE: The SASL application in OTP has nothing to do with "Simple Authentication and Security Layer" (RFC 4422).
Configuration
The following configuration parameters are defined for the SASL application. For more information about configuration parameters, see app(4) in Kernel.
All configuration parameters are optional.
start_prg = string()
masters = [atom()]
client_directory = string()
static_emulator = true | false
releases_dir = string()
Deprecated Error Logger Event Handlers and Configuration
In Erlang/OTP 21.0, a new API for logging was added. The old error_logger event manager, and event handlers running on this manager, still work, but they are not used by default.
The error logger event handlers sasl_report_tty_h and sasl_report_file_h, were earlier used for printing the so called SASL reports, that is, supervisor reports, crash reports, and progress reports. These reports are now also printed by the default logger handler started by the Kernel application. Progress reports are by default stopped by the primary log level, but can be enabled by setting this level to info, for example by using the Kernel configuration parameter logger_level.
If the old error logger event handlers are still desired, they must be added by calling error_logger:add_report_handler/1,2.
sasl_report_tty_h
sasl_report_file_h
A similar behaviour, but still using the new logger API, can be obtained by setting the Kernel application environment variable logger_sasl_compatible to true. This adds a second instance of the standard Logger handler, named sasl, which only prints the SASL reports. No SASL reports are then printed by the Kernel logger handler.
The sasl handler is configured according to the values of the following SASL application environment variables.
sasl_error_logger = Value
Value is one of the following: tty
{file,FileName}
{file,FileName,Modes}
false
errlog_type = error | progress | all
utc_log = true | false
The error logger event handler log_mf_h can also still be used. This event handler writes all events sent to the error logger to disk. Multiple files and log rotation are used. For efficiency reasons, each event is written as a binary. For more information about this handler, see the STDLIB Reference Manual.
To activate this event handler, three SASL configuration parameters must be set:
error_logger_mf_dir = string() | false
error_logger_mf_maxbytes = integer()
error_logger_mf_maxfiles = 0<integer()<256
The new logger_disk_log_h might be an alternative to log_mf_h if log rotation is desired. This does, however, write the log events in clear text and not as binaries.
See Also
alarm_handler, error_logger, logger, log_mf_h, rb, release_handler, systools
| 6 | sasl 4.3 |