cz.cuni.amis.pogamut.base.utils.logging
Class NetworkLogEnvelope

java.lang.Object
  extended by cz.cuni.amis.pogamut.base.utils.logging.NetworkLogEnvelope
All Implemented Interfaces:
java.io.Serializable

public class NetworkLogEnvelope
extends java.lang.Object
implements java.io.Serializable

Used to send/receive log messages that NetworkLogManager publishes.

See Also:
Serialized Form

Constructor Summary
NetworkLogEnvelope(java.lang.String cat, java.util.logging.Level lev, long mil, java.lang.String mes)
           
NetworkLogEnvelope(java.lang.String category, java.lang.String level, java.lang.String time, java.lang.String message)
           
 
Method Summary
 java.util.logging.LogRecord asLogRecord()
           
 java.lang.String getCategory()
           
 java.util.logging.Level getLevel()
           
 java.lang.String getMessage()
           
 long getMillis()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NetworkLogEnvelope

public NetworkLogEnvelope(java.lang.String cat,
                          java.util.logging.Level lev,
                          long mil,
                          java.lang.String mes)

NetworkLogEnvelope

public NetworkLogEnvelope(java.lang.String category,
                          java.lang.String level,
                          java.lang.String time,
                          java.lang.String message)
Method Detail

asLogRecord

public java.util.logging.LogRecord asLogRecord()

getCategory

public java.lang.String getCategory()

getLevel

public java.util.logging.Level getLevel()

getMillis

public long getMillis()

getMessage

public java.lang.String getMessage()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object