public final class LoggingManager extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
LOGGING_TARGET_DEVICE |
static String |
LOGGING_TARGET_FILE |
static String |
LOGGING_TARGET_SEPARATOR |
| Modifier and Type | Method and Description |
|---|---|
void |
addDeviceAppender(String deviceTargetName,
Class<?> deviceClassName,
String loggingDeviceName)
Logging of device sent to logviewer device
|
void |
addFileAppender(String fileName,
String deviceName)
Add an file appender for a device
|
static LoggingManager |
getInstance() |
int |
getLoggingLevel(String deviceName) |
String[] |
getLoggingTarget(String loggingDeviceName) |
int |
getRootLoggingLevel() |
void |
removeAppender(String loggingDeviceName,
String targetName) |
void |
setLoggingLevel(int loggingLevel,
Class<?>... deviceClassNames)
Set the level of all loggers of JTangoServer
|
void |
setLoggingLevel(String deviceName,
int loggingLevel)
Set the logging level of a device
|
void |
setRootLoggingLevel(int loggingLevel)
Set the level of the root logger
|
void |
startAll() |
void |
stopAll() |
public static final String LOGGING_TARGET_SEPARATOR
public static final String LOGGING_TARGET_DEVICE
public static final String LOGGING_TARGET_FILE
public static LoggingManager getInstance()
public int getRootLoggingLevel()
public int getLoggingLevel(String deviceName)
public void setLoggingLevel(String deviceName, int loggingLevel)
deviceName - the device nameloggingLevel - the levelpublic void setRootLoggingLevel(int loggingLevel)
loggingLevel - public void setLoggingLevel(int loggingLevel,
Class<?>... deviceClassNames)
loggingLevel - public void addDeviceAppender(String deviceTargetName, Class<?> deviceClassName, String loggingDeviceName) throws fr.esrf.Tango.DevFailed
deviceTargetName - deviceClassName - loggingDeviceName - fr.esrf.Tango.DevFailedpublic void addFileAppender(String fileName, String deviceName) throws fr.esrf.Tango.DevFailed
fileName - deviceName - fr.esrf.Tango.DevFailedpublic void startAll()
public void stopAll()
Copyright © 2012–2017 Tango Controls. All rights reserved.