The Diffusion Publisher API is deprecated and will be removed in a future release.
@Deprecated public final class Logs extends Object
Modifier and Type | Method and Description |
---|---|
static void |
addHandler(Handler handler)
Deprecated.
Adds a log handler to the root logger which is the parent of all logs.
|
static LogWriter |
createLog(LogDescription description)
Deprecated.
Create a log from a log description.
|
static LogWriter |
createLog(String configName)
Deprecated.
Create a log from a named log configuration.
|
static Level |
getLevel()
Deprecated.
since 4.6
Prefer the SLF4J API for logging. |
static void |
removeHandler(Handler handler)
Deprecated.
Removes a log handler from the root logger which is the parent of all
logs.
|
static void |
setLevel(Level level)
Deprecated.
since 4.6
Prefer the SLF4J API for logging. |
public static void addHandler(Handler handler)
handler
- the log handler.public static void removeHandler(Handler handler)
handler
- the log handler.@Deprecated public static void setLevel(Level level)
Prefer the SLF4J API for logging.
level
- the new log level@Deprecated public static Level getLevel()
Prefer the SLF4J API for logging.
public static LogWriter createLog(String configName) throws APIException
configName
- the name of the log configurationAPIException
- if unable to create logpublic static LogWriter createLog(LogDescription description) throws APIException
description
- the log description - this could be a log
configuration object (see LogConfig
)APIException
- if unable to create the logCopyright © 2020 Push Technology Ltd. All Rights Reserved.