ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/server/uk/org/iscream/cms/server/core/LoggerServant.java
(Generate patch)

Comparing projects/cms/source/server/uk/org/iscream/cms/server/core/LoggerServant.java (file contents):
Revision 1.5 by ajm, Fri Feb 23 19:02:55 2001 UTC vs.
Revision 1.8 by tdb, Mon Mar 5 04:13:55 2001 UTC

# Line 47 | Line 47 | class LoggerServant extends LoggerPOA {
47   //---PUBLIC METHODS---
48  
49      /**
50 <         * The write() method simply passes the call on to it's local
51 <         * LoggerImpl object.
52 <         *
53 <         * Note the "source" is prepended with the name of the verbosity level.
50 >         * The write() method takes a source, verbosity level and
51 >         * message, and formats them using an external line
52 >         * formatting method. This line is then given to the logger
53 >         * to be written. Note that checking of the level is carried
54 >         * out here.
55           *
56           * @param source A string representation of the calling object.
57           * @param verbosity the verbosity of this message
58           * @param message The text to be logged.
59           */  
60      public void write(String source, int verbosity, String message) {
61 <        _logger.write("[" + VERBOSITY_NAMES[verbosity] + "] " + source, verbosity, message);
61 >        if (verbosity <= _verbosityLevel) {
62 >            _logger.write(FormatName.formatLogLine(source, verbosity, message), verbosity);
63 >        }
64      }
65        
66      /**

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines