public class PrintWriterLogger extends Object implements LoggerFacade
Modifier and Type | Field and Description |
---|---|
protected boolean |
debug |
protected String |
name |
protected PrintWriter |
printWriter |
Constructor and Description |
---|
PrintWriterLogger(PrintWriter printWriter,
String name,
boolean debug) |
Modifier and Type | Method and Description |
---|---|
LoggerFacade |
createLogger(String newName) |
boolean |
isFineEnabled() |
boolean |
isFinerEnabled() |
boolean |
isFinestEnabled() |
protected void |
log(String level,
String message) |
void |
logFine(String message) |
void |
logFiner(String message) |
void |
logFinest(String message) |
void |
logInfo(String message) |
void |
logSevere(String message) |
void |
logSevere(String message,
Throwable t) |
void |
logWarning(String message) |
void |
logWarning(String message,
Throwable t) |
protected PrintWriter printWriter
protected boolean debug
public PrintWriterLogger(PrintWriter printWriter, String name, boolean debug)
public LoggerFacade createLogger(String newName)
createLogger
in interface LoggerFacade
public void logInfo(String message)
logInfo
in interface LoggerFacade
public void logFine(String message)
logFine
in interface LoggerFacade
public boolean isFineEnabled()
isFineEnabled
in interface LoggerFacade
public void logFiner(String message)
logFiner
in interface LoggerFacade
public boolean isFinerEnabled()
isFinerEnabled
in interface LoggerFacade
public void logFinest(String message)
logFinest
in interface LoggerFacade
public boolean isFinestEnabled()
isFinestEnabled
in interface LoggerFacade
public void logWarning(String message)
logWarning
in interface LoggerFacade
public void logWarning(String message, Throwable t)
logWarning
in interface LoggerFacade
public void logSevere(String message)
logSevere
in interface LoggerFacade
public void logSevere(String message, Throwable t)
logSevere
in interface LoggerFacade
Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.