|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.csstudio.logging.LogConfigurator
public class LogConfigurator
Configurator for java.util.logging based on Eclipse preferences
Method Summary | |
---|---|
static void |
configureConsoleLogger(java.util.logging.Level level,
java.util.logging.Formatter formatter)
Configure all currently active loggers. |
static void |
configureFileLogging(java.util.logging.Level level,
java.lang.String file_pattern,
int max_bytes,
int max_files,
java.util.logging.Formatter formatter)
Configure a file logger When logging to multiple files, the first one will use the given filename. |
static void |
configureFromPreferences()
(Re-)Initialize logger from Eclipse preferences |
static void |
configureJMSLogging(java.util.logging.Level level,
java.lang.String jms_url,
java.lang.String topic,
java.util.logging.Formatter formatter)
Configure a JMS logger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void configureFromPreferences() throws java.lang.Exception
java.lang.Exception
- on error: Invalid preference values, errors during logger setuppublic static void configureConsoleLogger(java.util.logging.Level level, java.util.logging.Formatter formatter)
level
- formatter
- public static void configureFileLogging(java.util.logging.Level level, java.lang.String file_pattern, int max_bytes, int max_files, java.util.logging.Formatter formatter) throws java.lang.Exception
level
- Log level to use with file logging. Level.OFF
to disable file loggingfile_pattern
- Base name of the file, ".0", ".1", ".2" will be added for multiple filesmax_bytes
- When file exceeds this size, a new file will be createdmax_files
- Number of files to use
java.lang.Exception
- on error: Cannot create new file, ...public static void configureJMSLogging(java.util.logging.Level level, java.lang.String jms_url, java.lang.String topic, java.util.logging.Formatter formatter) throws java.lang.Exception
level
- Log level. Level.OFF
to disable JMS loggingjms_url
- JMS server URLtopic
- JMS topicformatter
- Formatter
java.lang.Exception
- on error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |