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 voidclose()Closevoidflush()Flushvoidpublish(LogRecord record)PublishvoidsetEncoding(String encoding)Set EncodingvoidsetLevel(Level newLevel)Set LevelStringtoString()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:
setEncodingin classHandler- Parameters:
encoding- encoding- Throws:
SecurityExceptionUnsupportedEncodingException
-
setLevel
public void setLevel(Level newLevel) throws SecurityException
Set Level- Overrides:
setLevelin classHandler- Parameters:
newLevel- new Level- Throws:
SecurityException- See Also:
Handler.setLevel(java.util.logging.Level)
-
publish
public void publish(LogRecord record)
Publish- Specified by:
publishin classHandler- Parameters:
record- log record- See Also:
Handler.publish(java.util.logging.LogRecord)
-
flush
public void flush()
Flush- Specified by:
flushin classHandler- See Also:
Handler.flush()
-
close
public void close() throws SecurityExceptionClose- Specified by:
closein classHandler- Throws:
SecurityException- See Also:
Handler.close()
-
-