public final class ConfigurationParser
extends java.lang.Object
Configuration| Modifier and Type | Method | Description |
|---|---|---|
static java.util.Map<java.lang.String,org.tinylog.Level> |
getCustomLevels() |
Loads custom severity levels for packages or classes from configuration.
|
static org.tinylog.Level |
getGlobalLevel() |
Loads the global severity level from configuration.
|
static java.util.List<java.lang.String> |
getTags() |
Loads all tags from writers in configuration.
|
static boolean |
isAutoShutdownEnabled() |
Detects whether auto shutdown is enabled in configuration.
|
static boolean |
isWritingThreadEnabled() |
Detects whether writing thread is enabled in configuration.
|
static org.tinylog.Level |
parse(java.lang.String property,
org.tinylog.Level defaultValue) |
Reads a severity level from configuration.
|
public static org.tinylog.Level getGlobalLevel()
Level.TRACE if no severity level is configuredpublic static java.util.Map<java.lang.String,org.tinylog.Level> getCustomLevels()
public static java.util.List<java.lang.String> getTags()
public static boolean isWritingThreadEnabled()
true if writing thread is explicitly enabled, otherwise falsepublic static boolean isAutoShutdownEnabled()
false if auto shutdown is explicitly disabled, otherwise truepublic static org.tinylog.Level parse(java.lang.String property,
org.tinylog.Level defaultValue)
property - Key of propertydefaultValue - Default value, if property doesn't exist or is invalidCopyright © 2022. All rights reserved.