|
![]() |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.org.iscream.cms.server.core.loggers.MultiLogger
The MultiLogger is just a gateway to both the ScreenLogger and the FileLogger.
Field Summary | |
private LoggerImpl |
_filelog
A reference to the FileLogger we'll use |
private String |
_name
This is the friendly identifier of the component this class is running in. |
private LoggerImpl |
_screenlog
A reference to the ScreenLogger we'll use |
String |
REVISION
The current CVS revision of this class |
Constructor Summary | |
MultiLogger()
Creates a new MultiLogger. |
Method Summary | |
String |
toString()
Overrides the Object.toString()
method to provide clean logging (every class should have this). |
void |
write(String line,
int verbosity)
The write() method takes a line of text, pre-formatted and outputs it using a method defined by the actual implementation. |
private void |
write(String source,
int verbosity,
String message)
This method is provided if this class wishes to log a message itself. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public final String REVISION
private LoggerImpl _screenlog
private LoggerImpl _filelog
private String _name
Constructor Detail |
public MultiLogger() throws IOException
Method Detail |
public void write(String line, int verbosity)
write
in interface LoggerImpl
line
- A line of formatted text to be loggedverbosity
- the verbosity of this messagepublic String toString()
Object.toString()
method to provide clean logging (every class should have this).
This uses the uk.org.iscream.cms.util.FormatName class
to format the toString()
private void write(String source, int verbosity, String message)
source
- A String representation of the sourceverbosity
- the verbosity of this messagemessage
- The message to log
|
![]() |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |