org.csstudio.logging
Class Preferences
java.lang.Object
org.csstudio.logging.Preferences
public class Preferences
- extends java.lang.Object
Helper to read preferences
- Author:
- Kay Kasemir
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DETAIL
public static final java.lang.String DETAIL
- See Also:
- Constant Field Values
CONSOLE_LEVEL
public static final java.lang.String CONSOLE_LEVEL
- See Also:
- Constant Field Values
FILE_LEVEL
public static final java.lang.String FILE_LEVEL
- See Also:
- Constant Field Values
FILE_PATTERN
public static final java.lang.String FILE_PATTERN
- See Also:
- Constant Field Values
FILE_BYTES
public static final java.lang.String FILE_BYTES
- See Also:
- Constant Field Values
FILE_COUNT
public static final java.lang.String FILE_COUNT
- See Also:
- Constant Field Values
JMS_LEVEL
public static final java.lang.String JMS_LEVEL
- See Also:
- Constant Field Values
JMS_URL
public static final java.lang.String JMS_URL
- See Also:
- Constant Field Values
JMS_TOPIC
public static final java.lang.String JMS_TOPIC
- See Also:
- Constant Field Values
Preferences
public Preferences()
getDetail
public static LogFormatDetail getDetail()
throws java.lang.Exception
- Returns:
LogFormatDetail
from preferences or a default
- Throws:
java.lang.Exception
- when value cannot be parsed
getConsoleLevel
public static java.util.logging.Level getConsoleLevel()
throws java.lang.Exception
- Returns:
Level
for root/console logger from preferences or a default
- Throws:
java.lang.Exception
- when value cannot be parsed
getFileLevel
public static java.util.logging.Level getFileLevel()
throws java.lang.Exception
- Returns:
Level
for file logger from preferences or a default
- Throws:
java.lang.Exception
- when value cannot be parsed
getFilePattern
public static java.lang.String getFilePattern()
throws java.lang.Exception
- Returns:
- Filename path and pattern for file logger from preferences or a default
- Throws:
java.lang.Exception
getFileBytes
public static int getFileBytes()
throws java.lang.Exception
- Returns:
- Maximum number of bytes in file before rotation to next file
- Throws:
java.lang.Exception
getFileCount
public static int getFileCount()
throws java.lang.Exception
- Returns:
- Maximum number of files in rotation
- Throws:
java.lang.Exception
getJMSLevel
public static java.util.logging.Level getJMSLevel()
throws java.lang.Exception
- Returns:
Level
for JMS logger from preferences or a default
- Throws:
java.lang.Exception
- when value cannot be parsed
getJMSURL
public static java.lang.String getJMSURL()
throws java.lang.Exception
- Returns:
- JMS URL from preferences or a default
- Throws:
java.lang.Exception
getJMSTopic
public static java.lang.String getJMSTopic()
throws java.lang.Exception
- Returns:
- JMS Topic from preferences or a default
- Throws:
java.lang.Exception