|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sap.ip.me.api.logging.DefaultSystemLogWriter
Default System.out log writer implementation for Mobile
Infrastructure. All messages will be logged to System.out.
| Constructor Summary | |
DefaultSystemLogWriter()
|
|
| Method Summary | |
java.util.Vector |
getLogContent()
Returns an empty vector because the DefaultSystemLogWriter
does not support this feature. |
void |
initialize(java.lang.String configurationPrefix)
Initializes the log writer with given configuration prefix. |
void |
logFileContent(int severity,
java.lang.String component,
java.io.File file,
java.lang.String encoding)
Logs the content of a file into the log. |
boolean |
reset()
Does nothing because this functionality is not supported by DefaultSystemLogWriter
. |
void |
setPrintAppendix(boolean printAppendix)
Sets the flag if the log appendix should be written everytime the log is switched off. |
void |
setPrintProlog(boolean printProlog)
Sets the flag if the log prolog should be written everytime the log is switched on. |
boolean |
switchOn(boolean on)
Switch the log writer on or off. |
void |
writeln(int severity,
java.lang.String component,
java.lang.String message,
java.lang.Object[] params)
Formats the message and writes it to System.out. |
void |
writeln(int severity,
java.lang.String component,
java.lang.String message,
java.lang.Object[] params,
java.lang.Throwable t,
boolean printStacktrace)
Formats the message and writes it to System.out. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultSystemLogWriter()
| Method Detail |
public void logFileContent(int severity,
java.lang.String component,
java.io.File file,
java.lang.String encoding)
logFileContent in interface LogWriterseverity - The severity for this messagecomponent - The component that logs this messagefile - The file that has to be loggedencoding - The encoding that should be used to read the filepublic boolean reset()
DefaultSystemLogWriter
.
reset in interface LogWritertruepublic boolean switchOn(boolean on)
switchOn in interface LogWriteron - true iff the log should be switched on. The log
writer has to handle multiple calls of this method.
true if switch was successful.
public void writeln(int severity,
java.lang.String component,
java.lang.String message,
java.lang.Object[] params,
java.lang.Throwable t,
boolean printStacktrace)
System.out. Depending of
the printStacktrace parameter a stack trace of the Exception
will be logged too.
writeln in interface LogWriterseverity - The severity for this message.component - The component that logs this message.message - The message that has to be logged. See java.text.MessageFormat
for the format of this string.params - The parameter list for the message. See java.text.MessageFormat
.t - The Throwable that has to be logged.printStacktrace - true iff the stacktrace should be
logged.
public void writeln(int severity,
java.lang.String component,
java.lang.String message,
java.lang.Object[] params)
System.out.
writeln in interface LogWriterseverity - The severity for this message.component - The component that logs this message.message - The message that has to be logged. See java.text.MessageFormat
for the format of this string.params - The parameter list for the message. See java.text.MessageFormat
.public java.util.Vector getLogContent()
DefaultSystemLogWriter
does not support this feature.
getLogContent in interface LogWriterpublic void initialize(java.lang.String configurationPrefix)
AppLog or Trace
instances.
initialize in interface LogWriterconfigurationPrefix - The configuration prefix that should be used to
initialize the log writer.public void setPrintProlog(boolean printProlog)
setPrintProlog in interface LogWriterprintProlog - true if the log prolog should be written.public void setPrintAppendix(boolean printAppendix)
setPrintAppendix in interface LogWriterprintAppendix - true if the log appendix should be
written.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||