org.iids.aos.agent
Class AgentLog

java.lang.Object
  extended by org.apache.commons.logging.impl.SimpleLog
      extended by org.iids.aos.agent.AgentLog
All Implemented Interfaces:
java.io.Serializable, org.apache.commons.logging.Log

public class AgentLog
extends org.apache.commons.logging.impl.SimpleLog

Logger that saves log messages for later use (like display by HttpServer)

Author:
rjtimmer
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.commons.logging.impl.SimpleLog
currentLogLevel, dateFormatter, dateTimeFormat, DEFAULT_DATE_TIME_FORMAT, LOG_LEVEL_ALL, LOG_LEVEL_DEBUG, LOG_LEVEL_ERROR, LOG_LEVEL_FATAL, LOG_LEVEL_INFO, LOG_LEVEL_OFF, LOG_LEVEL_TRACE, LOG_LEVEL_WARN, logName, showDateTime, showLogName, showShortName, simpleLogProps, systemPrefix
 
Constructor Summary
AgentLog(Agent agent, AgentHandle handle)
           
 
Method Summary
 AgentHandle getHandle()
           
 java.util.List<LogMessage> getLogMessages()
           
 java.util.List<LogMessage> getLogMessages(int priority)
           
 java.lang.String getName()
           
protected  void log(int type, java.lang.Object message, java.lang.Throwable throwable)
           
 void readExternal(java.io.ObjectInput in)
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class org.apache.commons.logging.impl.SimpleLog
debug, debug, error, error, fatal, fatal, getLevel, info, info, isDebugEnabled, isErrorEnabled, isFatalEnabled, isInfoEnabled, isLevelEnabled, isTraceEnabled, isWarnEnabled, setLevel, trace, trace, warn, warn, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgentLog

public AgentLog(Agent agent,
                AgentHandle handle)
Method Detail

getName

public java.lang.String getName()

getHandle

public AgentHandle getHandle()

log

protected void log(int type,
                   java.lang.Object message,
                   java.lang.Throwable throwable)
Overrides:
log in class org.apache.commons.logging.impl.SimpleLog

getLogMessages

public java.util.List<LogMessage> getLogMessages()

getLogMessages

public java.util.List<LogMessage> getLogMessages(int priority)

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException


Copyright © 2003, 2004 IIDS Group. All Rights Reserved.