|
![]() |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.omg.PortableServer.Servant
uk.org.iscream.cms.server.core.LoggerPOA
uk.org.iscream.cms.server.core.LoggerServant
The LoggerServant is an implementation of the Logger defined in the IDL interface. Allows classes to send logging information over CORBA to a local implementation of the LoggerImpl interface.
Field Summary | |
private LoggerImpl |
_logger
The actual Logger used by this instance |
private String |
_name
This is the friendly identifier of the component this class is running in. |
private int |
_verbosityLevel
The verbosity level of this instance |
String |
REVISION
The current CVS revision of this class |
static String[] |
VERBOSITY_NAMES
An array of names of verbosity levels. |
Fields inherited from class uk.org.iscream.cms.server.core.LoggerPOA |
|
Fields inherited from class org.omg.PortableServer.Servant |
|
Fields inherited from interface uk.org.iscream.cms.server.core.LoggerOperations |
DEBUG, ERROR, FATAL, SYSINIT, SYSMSG, WARNING |
Constructor Summary | |
LoggerServant(LoggerImpl logger)
Creates a new LoggerServant. |
Method Summary | |
String |
toString()
Overrides the Object.toString()
method to provide clean logging (every class should have this). |
void |
write(String source,
int verbosity,
String message)
The write() method takes a source, verbosity level and message, and formats them using an external line formatting method. |
Methods inherited from class uk.org.iscream.cms.server.core.LoggerPOA |
_all_interfaces, _invoke, _this, _this |
Methods inherited from class org.omg.PortableServer.Servant |
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public final String REVISION
public static final String[] VERBOSITY_NAMES
private int _verbosityLevel
private LoggerImpl _logger
private String _name
Constructor Detail |
public LoggerServant(LoggerImpl logger)
logger
- a reference to the LoggerImpl this will useMethod Detail |
public void write(String source, int verbosity, String message)
source
- A string representation of the calling object.verbosity
- the verbosity of this messagemessage
- The text to be logged.public 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()
|
![]() |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |