public final class LoggerManager extends Object
android-logger.properties file in src directory.
The format of configuration file is:
# root logger configuration root=<level>:<tag> # package / class logger configuration logger.<package or class name>=<level>:<tag>You can use values of
Logger.Level enum as level constants.
For example, the following configuration will
log all ERROR messages with tag "MyApplication" and all
messages from classes com.example.server.* with
tag "MyApplication-server":
root=ERROR:MyApplication logger.com.example.server=DEBUG:MyApplication-server
| Modifier and Type | Method and Description |
|---|---|
static Logger |
getLogger()
Returns logger corresponding to the caller class.
|
static Logger |
getLogger(Class<?> aClass)
Returns logger corresponding to the specified class.
|
static Logger |
getLogger(String name)
Returns logger corresponding to the specified name.
|
public static Logger getLogger(String name)
name - the name.Logger implementation.public static Logger getLogger(Class<?> aClass)
aClass - the class.Logger implementation.Copyright © 2015. All Rights Reserved.