public class BeamLogManager extends Object
Constructor and Description |
---|
BeamLogManager() |
Modifier and Type | Method and Description |
---|---|
static void |
configureSystemLogger(Formatter formatter,
boolean consoleEcho)
Deprecated.
no replacement
|
static BeamFormatter |
createFormatter(String appName,
String appVersion,
String copyrightInfo)
Deprecated.
no replacement
|
static String |
createLogHeader(String appName,
String appVersion,
String copyrightInfo)
Deprecated.
|
static void |
ensureLogPathFromPatternExists(String logPattern)
Deprecated.
|
static String |
getLogFilePattern(File outDir,
String logFilenamePrefix)
Deprecated.
no replacement
|
static String |
getLogFilePattern(String logFilenamePrefix)
Deprecated.
no replacement
|
static CacheHandler |
getRegisteredCacheHandler()
Deprecated.
no replacement
|
static Logger |
getSystemLogger()
Gets the system logger determined by the name returned by the
getSystemLoggerName method. |
static String |
getSystemLoggerName()
Deprecated.
no replacement, use
getSystemLogger().getName() |
static void |
removeRootLoggerHandlers()
Deprecated.
no replacement
|
static void |
setSystemLoggerName(String systemLoggerName)
Deprecated.
no replacement, system logger name is taken from system property "ceres.context"
|
@Deprecated public static String getSystemLoggerName()
getSystemLogger().getName()
"beam."
. High-level application
classes should always use loggers with the name "beam.app-name"
.null
setSystemLoggerName(java.lang.String)
,
getSystemLogger()
@Deprecated public static void setSystemLoggerName(String systemLoggerName)
"beam."
.systemLoggerName
- the name of the system logger, must not be null
getSystemLoggerName()
,
getSystemLogger()
public static Logger getSystemLogger()
getSystemLoggerName
method. Other
loggers are obtained using the standard Java 1.4 method java.util.logging.Logger.getLogger(name)
.
BEAM logging works as follows: getSystemLoggerName()
,
setSystemLoggerName(java.lang.String)
@Deprecated public static String getLogFilePattern(String logFilenamePrefix)
$BEAM_INSTALL_DIR$/log
and a filename created from the given log
filename prefix. This pattern is used to create java.util.logging.FileHandler
instances.logFilenamePrefix
- the log filename prefixgetLogFilePattern(File, String)
@Deprecated public static String getLogFilePattern(File outDir, String logFilenamePrefix)
java.util.logging.FileHandler
instances.logFilenamePrefix
- the log filename prefixgetLogFilePattern(String)
@Deprecated public static void configureSystemLogger(Formatter formatter, boolean consoleEcho)
formatter
- the formatter to be usedconsoleEcho
- if true, a console handler will be installed@Deprecated public static CacheHandler getRegisteredCacheHandler()
@Deprecated public static BeamFormatter createFormatter(String appName, String appVersion, String copyrightInfo)
appName
- the application nameappVersion
- the application version stringcopyrightInfo
- the application copyright information@Deprecated public static void removeRootLoggerHandlers()
@Deprecated public static void ensureLogPathFromPatternExists(String logPattern)
@Deprecated public static String createLogHeader(String appName, String appVersion, String copyrightInfo)
Copyright © 2002–2014 Brockmann Consult GmbH. All rights reserved.