blob: dd0e57506452cbc6f5c3e206f4a8e53f5f9e2c54 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
/*************************************************
*
* = PACKAGE
* netsvcs.Logger
*
* = FILENAME
* DefaultLMR.java
*
*
*@author Everett Anderson
*
*************************************************/
package netsvcs.Logger;
import java.lang.*;
import java.io.*;
import netsvcs.Logger.LogRecord;
/**
*
* <p><h2>DESCRIPTION</h2>
*
* <blockquote>
* The LogMessageReceiver removes the code that handles a log message from
* the logging service acceptor. The DefaultLMR simply calls the LogRecord's
* print method.
*
* @see netsvcs.Logger.ServerLoggingAcceptor
* @see netsvcs.Logger.LogRecord
*/
class DefaultLMR implements LogMessageReceiver
{
public void logRecord (String hostname,
LogRecord record)
{
record.print(hostname, true, System.err);
}
}
|