public class Logger extends Object
The evaluator may pass an instance of this class to operators and expressions during evaluation. They should use this to log any warning or error messages that might come up. This allows all of our logging policies to be concentrated in one class.
Errors are conditions that are severe enough to abort operation. Warnings are conditions through which the operation may continue, but which should be reported to the developer.
Constructor and Description |
---|
Logger(PrintStream pOut)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
isLoggingError()
Returns true if the application should even bother to try logging
an error.
|
boolean |
isLoggingWarning()
Returns true if the application should even bother to try logging
a warning.
|
void |
logError(String pTemplate)
Logs an error
|
void |
logError(String pTemplate,
Object pArg0)
Logs an error
|
void |
logError(String pTemplate,
Object pArg0,
Object pArg1)
Logs an error
|
void |
logError(String pTemplate,
Object pArg0,
Object pArg1,
Object pArg2)
Logs an error
|
void |
logError(String pTemplate,
Object pArg0,
Object pArg1,
Object pArg2,
Object pArg3)
Logs an error
|
void |
logError(String pTemplate,
Object pArg0,
Object pArg1,
Object pArg2,
Object pArg3,
Object pArg4)
Logs an error
|
void |
logError(String pTemplate,
Object pArg0,
Object pArg1,
Object pArg2,
Object pArg3,
Object pArg4,
Object pArg5)
Logs an error
|
void |
logError(String pMessage,
Throwable pRootCause)
Logs an error
|
void |
logError(String pTemplate,
Throwable pRootCause,
Object pArg0)
Logs an error
|
void |
logError(String pTemplate,
Throwable pRootCause,
Object pArg0,
Object pArg1)
Logs an error
|
void |
logError(String pTemplate,
Throwable pRootCause,
Object pArg0,
Object pArg1,
Object pArg2)
Logs an error
|
void |
logError(String pTemplate,
Throwable pRootCause,
Object pArg0,
Object pArg1,
Object pArg2,
Object pArg3)
Logs an error
|
void |
logError(String pTemplate,
Throwable pRootCause,
Object pArg0,
Object pArg1,
Object pArg2,
Object pArg3,
Object pArg4)
Logs an error
|
void |
logError(String pTemplate,
Throwable pRootCause,
Object pArg0,
Object pArg1,
Object pArg2,
Object pArg3,
Object pArg4,
Object pArg5)
Logs an error
|
void |
logError(Throwable pRootCause)
Logs an error
|
void |
logWarning(String pTemplate)
Logs a warning
|
void |
logWarning(String pTemplate,
Object pArg0)
Logs a warning
|
void |
logWarning(String pTemplate,
Object pArg0,
Object pArg1)
Logs a warning
|
void |
logWarning(String pTemplate,
Object pArg0,
Object pArg1,
Object pArg2)
Logs a warning
|
void |
logWarning(String pTemplate,
Object pArg0,
Object pArg1,
Object pArg2,
Object pArg3)
Logs a warning
|
void |
logWarning(String pTemplate,
Object pArg0,
Object pArg1,
Object pArg2,
Object pArg3,
Object pArg4)
Logs a warning
|
void |
logWarning(String pTemplate,
Object pArg0,
Object pArg1,
Object pArg2,
Object pArg3,
Object pArg4,
Object pArg5)
Logs a warning
|
void |
logWarning(String pMessage,
Throwable pRootCause)
Logs a warning
|
void |
logWarning(String pTemplate,
Throwable pRootCause,
Object pArg0)
Logs a warning
|
void |
logWarning(String pTemplate,
Throwable pRootCause,
Object pArg0,
Object pArg1)
Logs a warning
|
void |
logWarning(String pTemplate,
Throwable pRootCause,
Object pArg0,
Object pArg1,
Object pArg2)
Logs a warning
|
void |
logWarning(String pTemplate,
Throwable pRootCause,
Object pArg0,
Object pArg1,
Object pArg2,
Object pArg3)
Logs a warning
|
void |
logWarning(String pTemplate,
Throwable pRootCause,
Object pArg0,
Object pArg1,
Object pArg2,
Object pArg3,
Object pArg4)
Logs a warning
|
void |
logWarning(String pTemplate,
Throwable pRootCause,
Object pArg0,
Object pArg1,
Object pArg2,
Object pArg3,
Object pArg4,
Object pArg5)
Logs a warning
|
void |
logWarning(Throwable pRootCause)
Logs a warning
|
public Logger(PrintStream pOut)
pOut
- the PrintStream to which warnings should be printedpublic boolean isLoggingWarning()
public void logWarning(String pMessage, Throwable pRootCause) throws ELException
ELException
public void logWarning(String pTemplate) throws ELException
ELException
public void logWarning(Throwable pRootCause) throws ELException
ELException
public void logWarning(String pTemplate, Object pArg0) throws ELException
ELException
public void logWarning(String pTemplate, Throwable pRootCause, Object pArg0) throws ELException
ELException
public void logWarning(String pTemplate, Object pArg0, Object pArg1) throws ELException
ELException
public void logWarning(String pTemplate, Throwable pRootCause, Object pArg0, Object pArg1) throws ELException
ELException
public void logWarning(String pTemplate, Object pArg0, Object pArg1, Object pArg2) throws ELException
ELException
public void logWarning(String pTemplate, Throwable pRootCause, Object pArg0, Object pArg1, Object pArg2) throws ELException
ELException
public void logWarning(String pTemplate, Object pArg0, Object pArg1, Object pArg2, Object pArg3) throws ELException
ELException
public void logWarning(String pTemplate, Throwable pRootCause, Object pArg0, Object pArg1, Object pArg2, Object pArg3) throws ELException
ELException
public void logWarning(String pTemplate, Object pArg0, Object pArg1, Object pArg2, Object pArg3, Object pArg4) throws ELException
ELException
public void logWarning(String pTemplate, Throwable pRootCause, Object pArg0, Object pArg1, Object pArg2, Object pArg3, Object pArg4) throws ELException
ELException
public void logWarning(String pTemplate, Object pArg0, Object pArg1, Object pArg2, Object pArg3, Object pArg4, Object pArg5) throws ELException
ELException
public void logWarning(String pTemplate, Throwable pRootCause, Object pArg0, Object pArg1, Object pArg2, Object pArg3, Object pArg4, Object pArg5) throws ELException
ELException
public boolean isLoggingError()
public void logError(String pMessage, Throwable pRootCause) throws ELException
ELException
public void logError(String pTemplate) throws ELException
ELException
public void logError(Throwable pRootCause) throws ELException
ELException
public void logError(String pTemplate, Object pArg0) throws ELException
ELException
public void logError(String pTemplate, Throwable pRootCause, Object pArg0) throws ELException
ELException
public void logError(String pTemplate, Object pArg0, Object pArg1) throws ELException
ELException
public void logError(String pTemplate, Throwable pRootCause, Object pArg0, Object pArg1) throws ELException
ELException
public void logError(String pTemplate, Object pArg0, Object pArg1, Object pArg2) throws ELException
ELException
public void logError(String pTemplate, Throwable pRootCause, Object pArg0, Object pArg1, Object pArg2) throws ELException
ELException
public void logError(String pTemplate, Object pArg0, Object pArg1, Object pArg2, Object pArg3) throws ELException
ELException
public void logError(String pTemplate, Throwable pRootCause, Object pArg0, Object pArg1, Object pArg2, Object pArg3) throws ELException
ELException
public void logError(String pTemplate, Object pArg0, Object pArg1, Object pArg2, Object pArg3, Object pArg4) throws ELException
ELException
public void logError(String pTemplate, Throwable pRootCause, Object pArg0, Object pArg1, Object pArg2, Object pArg3, Object pArg4) throws ELException
ELException
public void logError(String pTemplate, Object pArg0, Object pArg1, Object pArg2, Object pArg3, Object pArg4, Object pArg5) throws ELException
ELException
public void logError(String pTemplate, Throwable pRootCause, Object pArg0, Object pArg1, Object pArg2, Object pArg3, Object pArg4, Object pArg5) throws ELException
ELException
Copyright © 2016 JBoss by Red Hat. All rights reserved.