public final class ConfigurationParser
extends java.lang.Object
Configuration| Modifier and Type | Method | Description |
|---|---|---|
static java.util.Collection<Writer>[][] |
createWriters(java.util.List<java.lang.String> tags,
org.tinylog.Level minimumLevel,
boolean writingThread) |
Creates a two-dimensional matrix with all configured writers.
|
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.Locale |
getLocale() |
Loads the locale 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.
|
public static java.util.Locale getLocale()
Locale.ROOT if no locale is configuredpublic 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 java.util.Collection<Writer>[][] createWriters(java.util.List<java.lang.String> tags, org.tinylog.Level minimumLevel, boolean writingThread)
Level.TRACE and ends with Level.ERROR.tags - Order of defined tagsminimumLevel - Minimum global severity levelwritingThread - Defines whether WritingThread is enabledCopyright © 2019. All rights reserved.