com.samskivert.util
Interface LogProvider

All Known Implementing Classes:
DefaultLogProvider, LoggingLogProvider

public interface LogProvider

The log provider interface allows the simple logging services provided to the samskivert codebase to be mapped onto an actual logging framework.


Method Summary
 int getLevel()
          Returns the default log level for all modules.
 int getLevel(String moduleName)
          Returns the log level for the specified module.
 void log(int level, String moduleName, String message)
          Log a message at the specified level for the specified module, if messages are enabled for that particular combination.
 void logStackTrace(int level, String moduleName, Throwable t)
          Log the stack trace of the supplied throwable at the specified level for the specified module, if messages are enabled for that particular combination.
 void setLevel(int level)
          Set the log level for all modules to the specified level.
 void setLevel(String moduleName, int level)
          Set the log level for the specified module to the specified level.
 

Method Detail

log

void log(int level,
         String moduleName,
         String message)
Log a message at the specified level for the specified module, if messages are enabled for that particular combination.


logStackTrace

void logStackTrace(int level,
                   String moduleName,
                   Throwable t)
Log the stack trace of the supplied throwable at the specified level for the specified module, if messages are enabled for that particular combination.


setLevel

void setLevel(String moduleName,
              int level)
Set the log level for the specified module to the specified level. The log services assume that all messages at or higher than the specified level will be logged.


setLevel

void setLevel(int level)
Set the log level for all modules to the specified level. The log services assume that all messages at or higher than the specified level will be logged.


getLevel

int getLevel(String moduleName)
Returns the log level for the specified module.


getLevel

int getLevel()
Returns the default log level for all modules.



Copyright © 2000-2008 Michael Bayne. All Rights Reserved.