Class: LogManager

LogManager

Manages loggers for registered components.

Methods

configureLoggers(loggerName, logLevel, argument1, argument2)

An interface to configure setting of a specific logger or all the loggers. For configuring all the loggers in one go, pass 'ALL' as loggerName.
NOTE:- sendtoserver feature is not supported currently.
Parameters:
Name Type Argument Description
loggerName String The logger to be configured. It is case insensitive.
logLevel String The log level to be configured.
argument1 String <optional>
String to mention if the logs should be sent to the server or enable console logging. Supported values are sendtoserver, printlogs, nosendtoserver, and noprintlogs.
argument2 String <optional>
String to mention if the logs should be sent to the server or enable console logging. Supported values are sendtoserver, printlogs, nosendtoserver, and noprintlogs.

getLogger(componentName) → {Object}

Gets the logger for a particular component. If the logger for a particular component is already instantiated, it acts as a logger factory tracking, else returns a new logger.
Parameters:
Name Type Description
componentName String Name of the component for which the logger is required.
Returns:
Logger for the component
Type
Object