sasl(7)
β¨ NAME β¨
sasl β the SASL application, bestie π
(and before you ask: nope, it's not that SASL, more on that in a sec π)
πΈ DESCRIPTION πΈ
okay so the SASL application is out here providing these services for you, no cap:
alarm_handlerrelease_handlersystools
β οΈ REAL TALK β οΈ The SASL application in OTP has nothing to do with "Simple Authentication and Security Layer" (RFC 4422). like, zero. none. different thing entirely. i know the acronym got you, it gets everyone π
π CONFIGURATION π
here's the tea β β these configuration parameters are defined for the SASL application. For more info about configuration parameters in general, go peek at app(5) in Kernel.
All configuration parameters are optional. yes, ALL of them. she's low maintenance π
start_prg = string()β Specifies the program to be used when restarting the system during release installation. Default is$OTP_ROOT/bin/start.masters = [atom()]β Specifies the nodes used by this node to read/write release information. This parameter is ignored if parameterclient_directoryis not set.client_directory = string()β This parameter specifies the client directory at the master nodes. For details, see Release Handling in OTP Design Principles. This parameter is ignored if parametermastersis not set.static_emulator = true | falseβ Indicates if the Erlang emulator is statically installed. A node with a static emulator cannot switch dynamically to a new emulator, as the executable files are written into memory statically. This parameter is ignored if parametersmastersandclient_directoryare not set.releases_dir = string()β Indicates where the releases directory is located. The release handler writes all its files to this directory. If this parameter is not set, the OS environment parameterRELDIRis used. By default, this is$OTP_ROOT/releases.
π DEPRECATED ERROR LOGGER EVENT HANDLERS AND CONFIGURATION π
okay so back in Erlang/OTP 21.0, a whole new API for logging got added β¨. The old error_logger event manager, and event handlers running on this manager, still work β but they are not used by default. she's retired but she still answers the phone π«Ά
The error logger event handlers sasl_report_tty_h and sasl_report_file_h were earlier used for printing the so called SASL reports, i.e. 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β Formats and writes supervisor reports, crash reports, and progress reports to stdio. This error logger event handler useserror_logger_format_depthin the Kernel application to limit how much detail is printed in crash and supervisor reports.sasl_report_file_hβ Formats and writes supervisor reports, crash report, and progress report to a single file. This error logger event handler useserror_logger_format_depthin the Kernel application to limit the details printed in crash and supervisor reports.
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βValueis one of the following:ttyβ Installssasl_report_tty_hin the error logger. This is the default option.{file,FileName}β Installssasl_report_file_hin the error logger. All reports go to fileFileName, which is a string. The file is opened in write mode with encodingutf8.{file,FileName,Modes}β Same as{file,FileName}, except thatModesallows you to specify the modes used for opening theFileNamegiven to thefile:open/2call. By default, the file is opened in write mode with encodingutf8. Use[append]to have theFileNameopen in append mode. A different encoding can also be specified.FileNameis a string.falseβ No SASL error logger handler is installed.
errlog_type = error | progress | allβ Restricts the error logging performed by the specifiedsasl_error_loggerto error reports or progress reports, or both. Default isall.utc_log = true | falseβ If set totrue, all dates in textual log outputs are displayed in Universal Coordinated Time with the stringUTCappended.
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β Specifies in which directorylog_mf_his to store its files. If this parameter is undefined orfalse, thelog_mf_hhandler is not installed.error_logger_mf_maxbytes = integer()β Specifies the maximum size of each individual file written bylog_mf_h. If this parameter is undefined, thelog_mf_hhandler is not installed.error_logger_mf_maxfiles = 0<integer()<256β Specifies the number of files used bylog_mf_h. If this parameter is undefined, thelog_mf_hhandler is not installed.
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(3erl), error_logger(3erl), logger(3erl), log_mf_h(3erl), rb(3erl), release_handler(3erl), systools(3erl)
go read them, i'll wait π π
that's the whole page bestie, you ate it up fr fr πβ¨ brought to you by Ericsson AB, rocking sasl 4.2 β mwah, love u, go read alarm_handler(3erl) next ππ«Ά
π¦ where this page comes from
- debian bookworm: erlang-manpages 1:25.2.3+dfsg-1+deb12u1 Β· Apache-2.0
- debian bookworm: erlang-manpages 1:25.2.3+dfsg-1+deb12u4 Β· Apache-2.0
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4 Β· Apache-2.0
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4.8 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms