org.openptk.logging
Interface LoggingIF

All Known Implementing Classes:
AtomicLogger, SimpleLogger, SysoutLogger

public interface LoggingIF


Field Summary
static java.lang.String PROP_CLASSNAME
           
static java.lang.String PROP_FILENAME
           
 
Method Summary
 void addConsole()
           
 void addFile(java.lang.String filename)
           
 void close()
           
 java.lang.String getId()
           
 void log(java.lang.String msg)
           
 void logError(java.lang.String msg)
          Emits the passed message to the Logger at logging level of ERROR.
 void logInfo(java.lang.String msg)
          Emits the passed message to the Logger at logging level of INFO.
 void logWarning(java.lang.String msg)
          Emits the passed message to the Logger at logging level of WARNING.
 void put(LoggingLevel level, java.lang.String msg)
           
 void put(java.lang.String msg)
           
 

Field Detail

PROP_CLASSNAME

static final java.lang.String PROP_CLASSNAME
See Also:
Constant Field Values

PROP_FILENAME

static final java.lang.String PROP_FILENAME
See Also:
Constant Field Values
Method Detail

addConsole

void addConsole()

addFile

void addFile(java.lang.String filename)
             throws java.lang.Exception
Parameters:
filename -
Throws:
java.lang.Exception

close

void close()

getId

java.lang.String getId()

log

void log(java.lang.String msg)

logError

void logError(java.lang.String msg)
Emits the passed message to the Logger at logging level of ERROR. These messages should represent messages that are of a urgent nature that pertain to system errors or failures.

Parameters:
msg - Message to be logged to logging subsystem

logInfo

void logInfo(java.lang.String msg)
Emits the passed message to the Logger at logging level of INFO. These messages should represent messages that are of a urgent nature that pertain to system errors or failures.

Parameters:
msg - Message to be logged to logging subsystem

logWarning

void logWarning(java.lang.String msg)
Emits the passed message to the Logger at logging level of WARNING. These messages should represent messages that are of a urgent nature that pertain to system errors or failures.

Parameters:
msg - Message to be logged to logging subsystem

put

void put(LoggingLevel level,
         java.lang.String msg)
Parameters:
level - LoggingLevel of message to be logged
msg - Message to be logged to logging subsystem

put

void put(java.lang.String msg)
Parameters:
msg - Message to be logged to logging subsystem


View/submit a bug or feature

For further API reference and developer documentation, see www.openptk.org. That documentation contains more detailed, developer-targeted descriptions, definitions of terms, workarounds, and working code examples.

Copyright (C) 2008-2012, Project OpenPTK. All Rights Reserved