- java.lang.Object
-
- ch.qos.logback.classic.spi.LoggerContextVO
-
- All Implemented Interfaces:
Serializable
public class LoggerContextVO extends Object implements Serializable
LoggerContextVO offers a restricted view of LoggerContext intended to be exposed by LoggingEvent to remote systems. This restricted view is optimized for serialization.Some of the LoggerContext or Logger attributes MUST not survive serialization, e.g. appenders, level values etc., as these attributes may have other values on the remote platform. LoggerContextVO class exposes the minimal and relevant attributes to the remote host, instead of having to deal with an incomplete LoggerContext with many null references.
- Author:
- Ceki Gülcü, Sébastien Pennec
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LoggerContextVO()No-arg constructor for serialization frameworks only.LoggerContextVO(LoggerContext lc)LoggerContextVO(String name, Map<String,String> propertyMap, long birthTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)longgetBirthTime()StringgetName()Map<String,String>getPropertyMap()inthashCode()StringtoString()
-
-
-
Constructor Detail
-
LoggerContextVO
public LoggerContextVO()
No-arg constructor for serialization frameworks only.- Since:
- 1.5.21
-
LoggerContextVO
public LoggerContextVO(LoggerContext lc)
-
LoggerContextVO
public LoggerContextVO(String name, Map<String,String> propertyMap, long birthTime)
-
-
Method Detail
-
getPropertyMap
public Map<String,String> getPropertyMap()
-
getBirthTime
public long getBirthTime()
-
-