Module org.apache.logging.log4j
Package org.apache.logging.log4j.simple
Class SimpleLoggerConfiguration
- java.lang.Object
-
- org.apache.logging.log4j.simple.SimpleLoggerConfiguration
-
public class SimpleLoggerConfiguration extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected PropertyEnvironment
environment
-
Constructor Summary
Constructors Constructor Description SimpleLoggerConfiguration(PropertyEnvironment environment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DateFormat
getDateTimeFormat()
Level
getDefaultLevel()
String
getLogFileName()
Level
getLoggerLevel(String loggerName)
boolean
isContextMapShown()
Include the ThreadContextMap in the log messageboolean
isDateTimeShown()
Include the current time in the log messageboolean
isLogNameShown()
Include the instance name in the log message?boolean
isShortNameShown()
Include the short name (last component) of the logger in the log message.
-
-
-
Field Detail
-
environment
protected final PropertyEnvironment environment
-
-
Constructor Detail
-
SimpleLoggerConfiguration
public SimpleLoggerConfiguration(PropertyEnvironment environment)
-
-
Method Detail
-
isContextMapShown
public boolean isContextMapShown()
Include the ThreadContextMap in the log message
-
isLogNameShown
public boolean isLogNameShown()
Include the instance name in the log message?
-
isShortNameShown
public boolean isShortNameShown()
Include the short name (last component) of the logger in the log message. Defaults to true - otherwise we'll be lost in a flood of messages without knowing who sends them.
-
isDateTimeShown
public boolean isDateTimeShown()
Include the current time in the log message
-
getDefaultLevel
public Level getDefaultLevel()
-
getDateTimeFormat
public DateFormat getDateTimeFormat()
-
getLogFileName
public String getLogFileName()
-
-