Package | Description |
---|---|
org.pmw.tinylog |
tinylog classes
|
Modifier and Type | Method | Description |
---|---|---|
Configurator |
Configurator.addWriter(Writer writer) |
Add an additional writer for outputting the created log entries.
|
Configurator |
Configurator.addWriter(Writer writer,
String formatPattern) |
Add an additional writer for outputting the created log entries.
|
Configurator |
Configurator.addWriter(Writer writer,
Level level) |
Add an additional writer for outputting the created log entries.
|
Configurator |
Configurator.addWriter(Writer writer,
Level level,
String formatPattern) |
Add an additional writer for outputting the created log entries.
|
static Configurator |
Configurator.currentConfig() |
Create a new configurator, based on the current configuration.
|
static Configurator |
Configurator.defaultConfig() |
Create a new configurator, based on the default configuration.
|
Configurator |
Configurator.formatPattern(String formatPattern) |
Set the format pattern for log entries.
|
static Configurator |
Configurator.fromFile(File file) |
Load a properties file from file system.
|
static Configurator |
Configurator.fromMap(Map<String,?> map) |
Load properties from a
Map . |
static Configurator |
Configurator.fromResource(String file) |
Load a properties file from classpath.
|
static Configurator |
Configurator.fromStream(InputStream stream) |
Load a properties file from an input stream.
|
static Configurator |
Configurator.fromURL(URL url) |
Load a properties file from a URL.
|
static Configurator |
Logger.getConfiguration() |
Get a copy of the current configuration.
|
Configurator |
Configurator.level(Class<?> classObject,
Level level) |
Set a custom severity level for a class.
|
Configurator |
Configurator.level(Package packageObject,
Level level) |
Set a custom severity level for a package.
|
Configurator |
Configurator.level(String packageOrClass,
Level level) |
Set a custom severity level for a package or class.
|
Configurator |
Configurator.level(Level level) |
Change the severity level.
|
Configurator |
Configurator.locale(Locale locale) |
Set the locale that is used to render format patterns for log entries.
|
Configurator |
Configurator.maxStackTraceElements(int maxStackTraceElements) |
Set the limit of stack traces for exceptions (default is 40).
|
Configurator |
Configurator.removeAllWriters() |
Remove all writers.
|
Configurator |
Configurator.removeWriter(Writer writer) |
Remove a writer.
|
Configurator |
Configurator.resetCustomLevels() |
Reset all custom severity levels (to use the default severity level again).
|
Configurator |
Configurator.writer(Writer writer) |
Set a writer to output created log entries.
|
Configurator |
Configurator.writer(Writer writer,
String formatPattern) |
Set a writer to output created log entries.
|
Configurator |
Configurator.writer(Writer writer,
Level level) |
Set a writer to output created log entries.
|
Configurator |
Configurator.writer(Writer writer,
Level level,
String formatPattern) |
Set a writer to output created log entries.
|
Configurator |
Configurator.writingThread(boolean enable) |
The writing thread can writes log entries asynchronously.
|
Configurator |
Configurator.writingThread(int priority) |
The writing thread can writes log entries asynchronously.
|
Configurator |
Configurator.writingThread(String threadToObserve) |
The writing thread can writes log entries asynchronously.
|
Configurator |
Configurator.writingThread(String threadToObserve,
int priority) |
The writing thread can writes log entries asynchronously.
|
Copyright © 2019. All rights reserved.