public final class Configuration extends Object
Logger
. Use Configurator
to
create a configuration.Modifier and Type | Method | Description |
---|---|---|
String |
getFormatPattern() |
Get the format pattern for log entries.
|
Level |
getLevel() |
Get the global severity level.
|
Level |
getLevel(String packageOrClass) |
Get the severity level for a package or class.
|
Locale |
getLocale() |
Get the locale that is used to render format patterns for log entries.
|
int |
getMaxStackTraceElements() |
Get the limit of stack traces for exceptions.
|
List<Writer> |
getWriters() |
Get the writers to output created log entries.
|
org.pmw.tinylog.WritingThread |
getWritingThread() |
Get the writing thread (writes log entries asynchronously).
|
boolean |
hasCustomLevels() |
Check if there are custom severity levels.
|
public Level getLevel()
public boolean hasCustomLevels()
true
if custom severity levels exist, false
if notpublic Level getLevel(String packageOrClass)
packageOrClass
- Name of the package respectively classpublic String getFormatPattern()
public Locale getLocale()
public List<Writer> getWriters()
public org.pmw.tinylog.WritingThread getWritingThread()
public int getMaxStackTraceElements()
Copyright © 2019. All rights reserved.