Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.lutris.logging
Interface LogChannel  view LogChannel download LogChannel.java

All Known Implementing Classes:
StandardLogChannel

public interface LogChannel

Interface of a channel associated with a logging facility. All messages for the facility are written using a channel.


Method Summary
 int getLevel(java.lang.String level)
          Convert a symbolic level to an integer identifier.
 LogWriter getLogWriter(int level)
          Create a LogWrite associated with a particular level.
 LogWriter getLogWriter(java.lang.String level)
          Create a LogWrite associated with a particular level.
 boolean isEnabled(int level)
          Determine if logging is enabled for the specified level.
 boolean isEnabled(java.lang.String level)
          Determine if logging is enabled for the specified level.
 void write(int level, java.lang.String msg)
          Write a string to the log file.
 void write(int level, java.lang.String msg, java.lang.Throwable throwable)
          Write a string and exception to the log file.
 void write(java.lang.String level, java.lang.String msg)
          Write a string to the log file.
 void write(java.lang.String level, java.lang.String msg, java.lang.Throwable throwable)
          Write a string and exception to the log file.
 

Method Detail

isEnabled

public boolean isEnabled(int level)
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.


isEnabled

public boolean isEnabled(java.lang.String level)
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.


getLevel

public int getLevel(java.lang.String level)
Convert a symbolic level to an integer identifier.


getLogWriter

public LogWriter getLogWriter(java.lang.String level)
Create a LogWrite associated with a particular level. This is often an easier object to use than a LogChannel if limited levels are needed.


getLogWriter

public LogWriter getLogWriter(int level)
Create a LogWrite associated with a particular level. This is often an easier object to use than a LogChannel if limited levels are needed.


write

public void write(int level,
                  java.lang.String msg)
Write a string to the log file.


write

public void write(java.lang.String level,
                  java.lang.String msg)
Write a string to the log file.


write

public void write(int level,
                  java.lang.String msg,
                  java.lang.Throwable throwable)
Write a string and exception to the log file.


write

public void write(java.lang.String level,
                  java.lang.String msg,
                  java.lang.Throwable throwable)
Write a string and exception to the log file.