public class AnyLogWriter extends Object implements com.gemstone.gemfire.LogWriter, com.gemstone.gemfire.i18n.LogWriterI18n
LogWriter that writes to a file logger,
depending on whether it is turned on via LogPrms.file_logging.
The log level query methods answer true if a file logger is active and
answer true. See LogPrms.file_logLevel.
| Constructor and Description |
|---|
AnyLogWriter(String levelName)
Create a log writer to stdout.
|
AnyLogWriter(String filePrefix,
boolean fileLogging,
String fileLogLevelName,
int fileMaxKBPerVM)
Create a log writer to a file.
|
AnyLogWriter(String filePrefix,
String levelName,
boolean append)
Create a log writer to a file of unlimited size.
|
AnyLogWriter(String filePrefix,
String levelName,
String dir,
boolean append)
Create a log writer to a file of unlimited size in the specified directory.
|
| Modifier and Type | Method and Description |
|---|---|
void |
config(String msg)
Implements
LogWriter.config(String). |
void |
config(com.gemstone.org.jgroups.util.StringId msgId) |
void |
config(com.gemstone.org.jgroups.util.StringId msgId,
Object param) |
void |
config(com.gemstone.org.jgroups.util.StringId msgId,
Object[] params) |
void |
config(com.gemstone.org.jgroups.util.StringId msgId,
Object[] params,
Throwable ex) |
void |
config(com.gemstone.org.jgroups.util.StringId msgId,
Object param,
Throwable ex) |
void |
config(com.gemstone.org.jgroups.util.StringId msgId,
Throwable ex) |
void |
config(String msg,
Throwable ex)
Implements
LogWriter.config(String,Throwable). |
void |
config(Throwable ex)
Implements
LogWriter.config(Throwable). |
boolean |
configEnabled()
Implements
LogWriter.configEnabled(). |
com.gemstone.gemfire.LogWriter |
convertToLogWriter() |
com.gemstone.gemfire.i18n.LogWriterI18n |
convertToLogWriterI18n() |
void |
entering(String sourceClass,
String sourceMethod)
Implements
LogWriter.entering(String,String). |
void |
error(String msg)
Implements
LogWriter.error(String). |
void |
error(com.gemstone.org.jgroups.util.StringId msgId) |
void |
error(com.gemstone.org.jgroups.util.StringId msgId,
Object param) |
void |
error(com.gemstone.org.jgroups.util.StringId msgId,
Object[] params) |
void |
error(com.gemstone.org.jgroups.util.StringId msgId,
Object[] params,
Throwable ex) |
void |
error(com.gemstone.org.jgroups.util.StringId msgId,
Object param,
Throwable ex) |
void |
error(com.gemstone.org.jgroups.util.StringId msgId,
Throwable ex) |
void |
error(String msg,
Throwable ex)
Implements
LogWriter.error(String,Throwable). |
void |
error(Throwable ex)
Implements
LogWriter.error(Throwable). |
boolean |
errorEnabled()
Implements
LogWriter.errorEnabled(). |
void |
exiting(String sourceClass,
String sourceMethod)
Implements
LogWriter.exiting(String,String). |
void |
fine(String msg)
Implements
LogWriter.fine(String). |
void |
fine(String msg,
Throwable ex)
Implements
LogWriter.fine(String,Throwable). |
void |
fine(Throwable ex)
Implements
LogWriter.fine(Throwable). |
boolean |
fineEnabled()
Implements
LogWriter.fineEnabled(). |
void |
finer(String msg)
Implements
LogWriter.finer(String). |
void |
finer(String msg,
Throwable ex)
Implements
LogWriter.finer(String,Throwable). |
void |
finer(Throwable ex)
Implements
LogWriter.finer(Throwable). |
boolean |
finerEnabled()
Implements
LogWriter.finerEnabled(). |
void |
finest(String msg)
Implements
LogWriter.finest(String). |
void |
finest(String msg,
Throwable ex)
Implements
LogWriter.finest(String,Throwable). |
void |
finest(Throwable ex)
Implements
LogWriter.finest(Throwable). |
boolean |
finestEnabled()
Implements
LogWriter.finestEnabled(). |
Handler |
getHandler() |
int |
getLevel()
Gets the writer's level.
|
void |
info(String msg)
Implements
LogWriter.info(String). |
void |
info(com.gemstone.org.jgroups.util.StringId msgId) |
void |
info(com.gemstone.org.jgroups.util.StringId msgId,
Object param) |
void |
info(com.gemstone.org.jgroups.util.StringId msgId,
Object[] params) |
void |
info(com.gemstone.org.jgroups.util.StringId msgId,
Object[] params,
Throwable ex) |
void |
info(com.gemstone.org.jgroups.util.StringId msgId,
Object param,
Throwable ex) |
void |
info(com.gemstone.org.jgroups.util.StringId msgId,
Throwable ex) |
void |
info(String msg,
Throwable ex)
Implements
LogWriter.info(String,Throwable). |
void |
info(Throwable ex)
Implements
LogWriter.info(Throwable). |
boolean |
infoEnabled()
Implements
LogWriter.infoEnabled(). |
void |
setLevel(int newLevel)
Sets the writer's level.
|
void |
severe(String msg)
Implements
LogWriter.severe(String). |
void |
severe(com.gemstone.org.jgroups.util.StringId msgId) |
void |
severe(com.gemstone.org.jgroups.util.StringId msgId,
Object param) |
void |
severe(com.gemstone.org.jgroups.util.StringId msgId,
Object[] params) |
void |
severe(com.gemstone.org.jgroups.util.StringId msgId,
Object[] params,
Throwable ex) |
void |
severe(com.gemstone.org.jgroups.util.StringId msgId,
Object param,
Throwable ex) |
void |
severe(com.gemstone.org.jgroups.util.StringId msgId,
Throwable ex) |
void |
severe(String msg,
Throwable ex)
Implements
LogWriter.severe(String,Throwable). |
void |
severe(Throwable ex)
Implements
LogWriter.severe(Throwable). |
boolean |
severeEnabled()
Implements
LogWriter.severeEnabled(). |
void |
throwing(String sourceClass,
String sourceMethod,
Throwable thrown)
Implements
LogWriter.throwing(String,String,Throwable). |
void |
warning(String msg)
Implements
LogWriter.warning(String). |
void |
warning(com.gemstone.org.jgroups.util.StringId msgId) |
void |
warning(com.gemstone.org.jgroups.util.StringId msgId,
Object param) |
void |
warning(com.gemstone.org.jgroups.util.StringId msgId,
Object[] params) |
void |
warning(com.gemstone.org.jgroups.util.StringId msgId,
Object[] params,
Throwable ex) |
void |
warning(com.gemstone.org.jgroups.util.StringId msgId,
Object param,
Throwable ex) |
void |
warning(com.gemstone.org.jgroups.util.StringId msgId,
Throwable ex) |
void |
warning(String msg,
Throwable ex)
Implements
LogWriter.warning(String,Throwable). |
void |
warning(Throwable ex)
Implements
LogWriter.warning(Throwable). |
boolean |
warningEnabled()
Implements
LogWriter.warningEnabled(). |
public AnyLogWriter(String levelName)
levelName - the log level.public AnyLogWriter(String filePrefix, String levelName, boolean append)
filePrefix - the prefix for the filename of the log.levelName - the log level.public AnyLogWriter(String filePrefix, String levelName, String dir, boolean append)
filePrefix - the prefix for the filename of the log.levelName - the log level.dir - the directory in which to create the file.public AnyLogWriter(String filePrefix, boolean fileLogging, String fileLogLevelName, int fileMaxKBPerVM)
filePrefix - the prefix for names of files created by this logwriter.fileLogging - turn on logging to the file.fileLogLevelName - name of the file log level.fileMaxKBPerVM - the maximum size of the file log per VM, in kilobytes .public int getLevel()
public void setLevel(int newLevel)
IllegalArgumentException - if level is not in legal rangepublic boolean severeEnabled()
LogWriter.severeEnabled().
Answers true if the file logger answers true.severeEnabled in interface com.gemstone.gemfire.i18n.LogWriterI18nsevereEnabled in interface com.gemstone.gemfire.LogWritersevereEnabled in interface com.gemstone.org.jgroups.util.GFLogWriterpublic void severe(String msg, Throwable ex)
LogWriter.severe(String,Throwable).severe in interface com.gemstone.gemfire.LogWriterpublic void severe(String msg)
LogWriter.severe(String).severe in interface com.gemstone.gemfire.LogWriterpublic void severe(Throwable ex)
LogWriter.severe(Throwable).severe in interface com.gemstone.gemfire.i18n.LogWriterI18nsevere in interface com.gemstone.gemfire.LogWriterpublic boolean errorEnabled()
LogWriter.errorEnabled().
Answers true if the file logger answers true.errorEnabled in interface com.gemstone.gemfire.i18n.LogWriterI18nerrorEnabled in interface com.gemstone.gemfire.LogWriterpublic void error(String msg, Throwable ex)
LogWriter.error(String,Throwable).error in interface com.gemstone.gemfire.LogWriterpublic void error(String msg)
LogWriter.error(String).error in interface com.gemstone.gemfire.LogWriterpublic void error(Throwable ex)
LogWriter.error(Throwable).error in interface com.gemstone.gemfire.i18n.LogWriterI18nerror in interface com.gemstone.gemfire.LogWriterpublic boolean warningEnabled()
LogWriter.warningEnabled().
Answers true if the file logger answers true.warningEnabled in interface com.gemstone.gemfire.i18n.LogWriterI18nwarningEnabled in interface com.gemstone.gemfire.LogWriterwarningEnabled in interface com.gemstone.org.jgroups.util.GFLogWriterpublic void warning(String msg, Throwable ex)
LogWriter.warning(String,Throwable).warning in interface com.gemstone.gemfire.LogWriterpublic void warning(String msg)
LogWriter.warning(String).warning in interface com.gemstone.gemfire.LogWriterpublic void warning(Throwable ex)
LogWriter.warning(Throwable).warning in interface com.gemstone.gemfire.i18n.LogWriterI18nwarning in interface com.gemstone.gemfire.LogWriterpublic boolean infoEnabled()
LogWriter.infoEnabled().
Answers true if the file logger answers true.infoEnabled in interface com.gemstone.gemfire.i18n.LogWriterI18ninfoEnabled in interface com.gemstone.gemfire.LogWriterinfoEnabled in interface com.gemstone.org.jgroups.util.GFLogWriterpublic void info(String msg, Throwable ex)
LogWriter.info(String,Throwable).info in interface com.gemstone.gemfire.LogWriterpublic void info(String msg)
LogWriter.info(String).info in interface com.gemstone.gemfire.LogWriterpublic void info(Throwable ex)
LogWriter.info(Throwable).info in interface com.gemstone.gemfire.i18n.LogWriterI18ninfo in interface com.gemstone.gemfire.LogWriterpublic boolean configEnabled()
LogWriter.configEnabled().
Answers true if the file logger answers true.configEnabled in interface com.gemstone.gemfire.i18n.LogWriterI18nconfigEnabled in interface com.gemstone.gemfire.LogWriterpublic void config(String msg, Throwable ex)
LogWriter.config(String,Throwable).config in interface com.gemstone.gemfire.LogWriterpublic void config(String msg)
LogWriter.config(String).config in interface com.gemstone.gemfire.LogWriterpublic void config(Throwable ex)
LogWriter.config(Throwable).config in interface com.gemstone.gemfire.i18n.LogWriterI18nconfig in interface com.gemstone.gemfire.LogWriterpublic boolean fineEnabled()
LogWriter.fineEnabled().
Answers true if the file logger answers true.fineEnabled in interface com.gemstone.gemfire.i18n.LogWriterI18nfineEnabled in interface com.gemstone.gemfire.LogWriterfineEnabled in interface com.gemstone.org.jgroups.util.GFLogWriterpublic void fine(String msg, Throwable ex)
LogWriter.fine(String,Throwable).fine in interface com.gemstone.gemfire.i18n.LogWriterI18nfine in interface com.gemstone.gemfire.LogWriterfine in interface com.gemstone.org.jgroups.util.GFLogWriterpublic void fine(String msg)
LogWriter.fine(String).fine in interface com.gemstone.gemfire.i18n.LogWriterI18nfine in interface com.gemstone.gemfire.LogWriterfine in interface com.gemstone.org.jgroups.util.GFLogWriterpublic void fine(Throwable ex)
LogWriter.fine(Throwable).fine in interface com.gemstone.gemfire.i18n.LogWriterI18nfine in interface com.gemstone.gemfire.LogWriterpublic boolean finerEnabled()
LogWriter.finerEnabled().
Answers true if the file logger answers true.finerEnabled in interface com.gemstone.gemfire.i18n.LogWriterI18nfinerEnabled in interface com.gemstone.gemfire.LogWriterpublic void finer(String msg, Throwable ex)
LogWriter.finer(String,Throwable).finer in interface com.gemstone.gemfire.i18n.LogWriterI18nfiner in interface com.gemstone.gemfire.LogWriterpublic void finer(String msg)
LogWriter.finer(String).finer in interface com.gemstone.gemfire.i18n.LogWriterI18nfiner in interface com.gemstone.gemfire.LogWriterpublic void finer(Throwable ex)
LogWriter.finer(Throwable).finer in interface com.gemstone.gemfire.i18n.LogWriterI18nfiner in interface com.gemstone.gemfire.LogWriterpublic boolean finestEnabled()
LogWriter.finestEnabled().
Answers true if the file logger answers true.finestEnabled in interface com.gemstone.gemfire.i18n.LogWriterI18nfinestEnabled in interface com.gemstone.gemfire.LogWriterpublic void finest(String msg, Throwable ex)
LogWriter.finest(String,Throwable).finest in interface com.gemstone.gemfire.i18n.LogWriterI18nfinest in interface com.gemstone.gemfire.LogWriterpublic void finest(String msg)
LogWriter.finest(String).finest in interface com.gemstone.gemfire.i18n.LogWriterI18nfinest in interface com.gemstone.gemfire.LogWriterpublic void finest(Throwable ex)
LogWriter.finest(Throwable).finest in interface com.gemstone.gemfire.i18n.LogWriterI18nfinest in interface com.gemstone.gemfire.LogWriterpublic void entering(String sourceClass, String sourceMethod)
LogWriter.entering(String,String).entering in interface com.gemstone.gemfire.i18n.LogWriterI18nentering in interface com.gemstone.gemfire.LogWriterpublic void exiting(String sourceClass, String sourceMethod)
LogWriter.exiting(String,String).exiting in interface com.gemstone.gemfire.i18n.LogWriterI18nexiting in interface com.gemstone.gemfire.LogWriterpublic void throwing(String sourceClass, String sourceMethod, Throwable thrown)
LogWriter.throwing(String,String,Throwable).throwing in interface com.gemstone.gemfire.i18n.LogWriterI18nthrowing in interface com.gemstone.gemfire.LogWriterpublic Handler getHandler()
getHandler in interface com.gemstone.gemfire.i18n.LogWriterI18ngetHandler in interface com.gemstone.gemfire.LogWriterpublic void config(com.gemstone.org.jgroups.util.StringId msgId,
Object param,
Throwable ex)
config in interface com.gemstone.gemfire.i18n.LogWriterI18npublic void config(com.gemstone.org.jgroups.util.StringId msgId,
Object param)
config in interface com.gemstone.gemfire.i18n.LogWriterI18npublic void config(com.gemstone.org.jgroups.util.StringId msgId,
Object[] params,
Throwable ex)
config in interface com.gemstone.gemfire.i18n.LogWriterI18npublic void config(com.gemstone.org.jgroups.util.StringId msgId,
Object[] params)
config in interface com.gemstone.gemfire.i18n.LogWriterI18npublic void config(com.gemstone.org.jgroups.util.StringId msgId,
Throwable ex)
config in interface com.gemstone.gemfire.i18n.LogWriterI18npublic void config(com.gemstone.org.jgroups.util.StringId msgId)
config in interface com.gemstone.gemfire.i18n.LogWriterI18npublic void error(com.gemstone.org.jgroups.util.StringId msgId,
Object param,
Throwable ex)
error in interface com.gemstone.gemfire.i18n.LogWriterI18npublic void error(com.gemstone.org.jgroups.util.StringId msgId,
Object param)
error in interface com.gemstone.gemfire.i18n.LogWriterI18npublic void error(com.gemstone.org.jgroups.util.StringId msgId,
Object[] params,
Throwable ex)
error in interface com.gemstone.gemfire.i18n.LogWriterI18npublic void error(com.gemstone.org.jgroups.util.StringId msgId,
Object[] params)
error in interface com.gemstone.gemfire.i18n.LogWriterI18npublic void error(com.gemstone.org.jgroups.util.StringId msgId,
Throwable ex)
error in interface com.gemstone.gemfire.i18n.LogWriterI18npublic void error(com.gemstone.org.jgroups.util.StringId msgId)
error in interface com.gemstone.gemfire.i18n.LogWriterI18npublic void info(com.gemstone.org.jgroups.util.StringId msgId,
Object param,
Throwable ex)
info in interface com.gemstone.gemfire.i18n.LogWriterI18ninfo in interface com.gemstone.org.jgroups.util.GFLogWriterpublic void info(com.gemstone.org.jgroups.util.StringId msgId,
Object param)
info in interface com.gemstone.gemfire.i18n.LogWriterI18ninfo in interface com.gemstone.org.jgroups.util.GFLogWriterpublic void info(com.gemstone.org.jgroups.util.StringId msgId,
Object[] params,
Throwable ex)
info in interface com.gemstone.gemfire.i18n.LogWriterI18ninfo in interface com.gemstone.org.jgroups.util.GFLogWriterpublic void info(com.gemstone.org.jgroups.util.StringId msgId,
Object[] params)
info in interface com.gemstone.gemfire.i18n.LogWriterI18ninfo in interface com.gemstone.org.jgroups.util.GFLogWriterpublic void info(com.gemstone.org.jgroups.util.StringId msgId,
Throwable ex)
info in interface com.gemstone.gemfire.i18n.LogWriterI18npublic void info(com.gemstone.org.jgroups.util.StringId msgId)
info in interface com.gemstone.gemfire.i18n.LogWriterI18ninfo in interface com.gemstone.org.jgroups.util.GFLogWriterpublic void severe(com.gemstone.org.jgroups.util.StringId msgId,
Object param,
Throwable ex)
severe in interface com.gemstone.gemfire.i18n.LogWriterI18nsevere in interface com.gemstone.org.jgroups.util.GFLogWriterpublic void severe(com.gemstone.org.jgroups.util.StringId msgId,
Object param)
severe in interface com.gemstone.gemfire.i18n.LogWriterI18nsevere in interface com.gemstone.org.jgroups.util.GFLogWriterpublic void severe(com.gemstone.org.jgroups.util.StringId msgId,
Object[] params,
Throwable ex)
severe in interface com.gemstone.gemfire.i18n.LogWriterI18nsevere in interface com.gemstone.org.jgroups.util.GFLogWriterpublic void severe(com.gemstone.org.jgroups.util.StringId msgId,
Object[] params)
severe in interface com.gemstone.gemfire.i18n.LogWriterI18nsevere in interface com.gemstone.org.jgroups.util.GFLogWriterpublic void severe(com.gemstone.org.jgroups.util.StringId msgId,
Throwable ex)
severe in interface com.gemstone.gemfire.i18n.LogWriterI18npublic void severe(com.gemstone.org.jgroups.util.StringId msgId)
severe in interface com.gemstone.gemfire.i18n.LogWriterI18nsevere in interface com.gemstone.org.jgroups.util.GFLogWriterpublic void warning(com.gemstone.org.jgroups.util.StringId msgId,
Object param,
Throwable ex)
warning in interface com.gemstone.gemfire.i18n.LogWriterI18nwarning in interface com.gemstone.org.jgroups.util.GFLogWriterpublic void warning(com.gemstone.org.jgroups.util.StringId msgId,
Object param)
warning in interface com.gemstone.gemfire.i18n.LogWriterI18nwarning in interface com.gemstone.org.jgroups.util.GFLogWriterpublic void warning(com.gemstone.org.jgroups.util.StringId msgId,
Object[] params,
Throwable ex)
warning in interface com.gemstone.gemfire.i18n.LogWriterI18nwarning in interface com.gemstone.org.jgroups.util.GFLogWriterpublic void warning(com.gemstone.org.jgroups.util.StringId msgId,
Object[] params)
warning in interface com.gemstone.gemfire.i18n.LogWriterI18nwarning in interface com.gemstone.org.jgroups.util.GFLogWriterpublic void warning(com.gemstone.org.jgroups.util.StringId msgId,
Throwable ex)
warning in interface com.gemstone.gemfire.i18n.LogWriterI18npublic void warning(com.gemstone.org.jgroups.util.StringId msgId)
warning in interface com.gemstone.gemfire.i18n.LogWriterI18nwarning in interface com.gemstone.org.jgroups.util.GFLogWriterpublic com.gemstone.gemfire.LogWriter convertToLogWriter()
convertToLogWriter in interface com.gemstone.gemfire.i18n.LogWriterI18npublic com.gemstone.gemfire.i18n.LogWriterI18n convertToLogWriterI18n()
convertToLogWriterI18n in interface com.gemstone.gemfire.LogWriterCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.