2017 Ericsson AB. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. logger_std_h A logger_std_h.xml
logger_std_h Default handler for the Logger application.

This is the default handler for the Logger application. Multiple instances of this handler can be added to logger, and each instance will print logs to standard_io, standard_error or to a file.

To add a new instance, use logger:add_handler/3 .

The handler configuration may contain the following keys, associated with values as described:

filters

A list of {Id,{Fun,Args}}, each representing a filter that may selct or modify log events to forward to this handler.

filter_default

The atom log or stop, specifying what to do with a log event if all filters return ignore.

formatter

{Module,Extra}, where Module:format(Log,Extra) will be called by the handler to produce the string that will be printed to the handler's destination.

level

The level of log events that logger shall forward to this handler. Log events of the specified, or more severe levels, are forwarded.