| java.lang.Object com.lutris.logging.MonologLogChannel
MonologLogChannel | public class MonologLogChannel implements LogChannel(Code) | | Monolog implementation of a channel associated with a logging
facility. All messages for the facility are written using a channel.
Care is take to avoid synchronization when possible for performance
reasons.
author: Sinisa Milosevic See Also: com.lutris.logging.LogChannel See Also: com.lutris.logging.Log4jLogger |
Constructor Summary | |
protected | MonologLogChannel(String chanFacility, org.objectweb.util.monolog.api.Logger loggerObj, String separator) Construct a new log channel. |
Method Summary | |
public int | getLevel(String level) | public LogWriter | getLogWriter(String level) NOT SUPPORTED
Parameters: level - Symbolic level that is to be checked. | public LogWriter | getLogWriter(int level) NOT SUPPORTED
Parameters: level - Numeric level that is to be checked. | public boolean | isEnabled(int level) Determine if logging is enabled for the specified level. | public boolean | isEnabled(String level) Determine if logging is enabled for the specified level. | public void | write(int level, String msg) Write a string to the log file. | public void | write(int level, String msg, Throwable throwable) Write a string and exception to the log file. | public void | write(String level, String msg) Write a string to the log file. | public void | write(String level, String msg, Throwable throwable) Write a string and exception to the log file. |
MonologLogChannel | protected MonologLogChannel(String chanFacility, org.objectweb.util.monolog.api.Logger loggerObj, String separator)(Code) | | Construct a new log channel.
Parameters: chanFacility - The facility that the channel is associate with. Parameters: loggerObj - The logging object that this channel will be associatedwith. |
getLogWriter | public LogWriter getLogWriter(String level)(Code) | | NOT SUPPORTED
Parameters: level - Symbolic level that is to be checked. A log writer object. |
getLogWriter | public LogWriter getLogWriter(int level)(Code) | | NOT SUPPORTED
Parameters: level - Numeric level that is to be checked. A log writer object. |
isEnabled | public boolean isEnabled(int level)(Code) | | Determine if logging is enabled for the specified level.
|
isEnabled | public boolean isEnabled(String level)(Code) | | Determine if logging is enabled for the specified level.
|
write | public void write(int level, String msg)(Code) | | Write a string to the log file.
|
write | public void write(int level, String msg, Throwable throwable)(Code) | | Write a string and exception to the log file.
|
|
|