| com.lutris.logging.LogChannel
All known Subclasses: com.lutris.logging.StandardLogChannel, com.lutris.logging.MonologLogChannel, com.lutris.logging.LogAdapter, com.lutris.logging.Log4jLogChannel,
getLevel | int getLevel(String level)(Code) | | Convert a symbolic level to an integer identifier.
Parameters: level - Symbolic level to convert The numeric level identifier |
getLogWriter | LogWriter getLogWriter(String level)(Code) | | Create a LogWrite associated with a particular level. This
is often an easier object to use than a LogChannel if limited
levels are needed.
Parameters: level - Symbolic level that is to be checked. A log writer object. |
getLogWriter | LogWriter getLogWriter(int level)(Code) | | Create a LogWrite associated with a particular level. This
is often an easier object to use than a LogChannel if limited
levels are needed.
Parameters: level - Numeric level that is to be checked. A log writer object. |
isEnabled | boolean isEnabled(int level)(Code) | | Determine if logging is enabled for the specified level. This
is useful to prevent a series of unnecessary logging calls,
as often encountered with debug logging, or a call where generating
the message is expensive.
Parameters: level - Numeric level that is to be checked. true if enabled, false if notenabled. |
isEnabled | boolean isEnabled(String level)(Code) | | Determine if logging is enabled for the specified level. This
is useful to prevent a series of unnecessary logging calls,
as often encountered with debug logging, or a call where generating
the message is expensive.
Parameters: level - Symbolic level that is to be checked. true if enabled, false if notenabled. |
write | void write(int level, String msg)(Code) | | Write a string to the log file.
Parameters: level - Numeric level the message is associated with. Parameters: msg - The message to log. |
write | void write(String level, String msg)(Code) | | Write a string to the log file.
Parameters: level - Symbolic level the message is associated with. Parameters: msg - The message to log. |
write | void write(int level, String msg, Throwable throwable)(Code) | | Write a string and exception to the log file.
Parameters: level - Numeric level the message is associated with. Parameters: msg - The message to log. Parameters: throwable - Exception or error to log. |
write | void write(String level, String msg, Throwable throwable)(Code) | | Write a string and exception to the log file.
Parameters: level - Symbolic level the message is associated with. Parameters: msg - The message to log. Parameters: throwable - Exception or error to log. |
|
|