Package org.compiere.util
Class CLogConsole
- java.lang.Object
-
- java.util.logging.Handler
-
- org.compiere.util.CLogConsole
-
public class CLogConsole extends Handler
Adempiere Console Logger- Version:
- $Id: CLogConsole.java,v 1.2 2006/07/30 00:54:35 jjanke Exp $
- Author:
- Jorg Janke
-
-
Constructor Summary
Constructors Constructor Description CLogConsole()
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Closevoid
flush()
Flushvoid
publish(LogRecord record)
Publishvoid
setEncoding(String encoding)
Set Encodingvoid
setLevel(Level newLevel)
Set LevelString
toString()
String Representation-
Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setErrorManager, setFilter, setFormatter
-
-
-
-
Method Detail
-
setEncoding
public void setEncoding(String encoding) throws SecurityException, UnsupportedEncodingException
Set Encoding- Overrides:
setEncoding
in classHandler
- Parameters:
encoding
- encoding- Throws:
SecurityException
UnsupportedEncodingException
-
setLevel
public void setLevel(Level newLevel) throws SecurityException
Set Level- Overrides:
setLevel
in classHandler
- Parameters:
newLevel
- new Level- Throws:
SecurityException
- See Also:
Handler.setLevel(java.util.logging.Level)
-
publish
public void publish(LogRecord record)
Publish- Specified by:
publish
in classHandler
- Parameters:
record
- log record- See Also:
Handler.publish(java.util.logging.LogRecord)
-
flush
public void flush()
Flush- Specified by:
flush
in classHandler
- See Also:
Handler.flush()
-
close
public void close() throws SecurityException
Close- Specified by:
close
in classHandler
- Throws:
SecurityException
- See Also:
Handler.close()
-
-