public final class ConfigurationParser extends Object
Configuration
Modifier and Type | Method and Description |
---|---|
static Collection<Writer>[][] |
createWriters(List<String> tags,
org.tinylog.Level minimumLevel,
boolean writingThread)
Creates a two-dimensional matrix with all configured writers.
|
static Map<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 List<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 org.tinylog.Level getGlobalLevel()
Level.TRACE
if no severity level is configuredpublic static Map<String,org.tinylog.Level> getCustomLevels()
public static List<String> getTags()
public static boolean isWritingThreadEnabled()
true
if writing thread is explicitly enabled, otherwise false
public static boolean isAutoShutdownEnabled()
false
if auto shutdown is explicitly disabled, otherwise true
public static Collection<Writer>[][] createWriters(List<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 © 2020. All rights reserved.