blob: ee927e19062f516208621f902755dc9663a8ec50 (
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
|
/*************************************************
*
* = PACKAGE
* netsvcs.Logger
*
* = FILENAME
* DefaultLMR.java
*
*
*@author Everett Anderson
*
*************************************************/
package JACE.netsvcs.Logger;
import java.io.*;
/**
* Default LoggingStrategy for the logging service. This prints out the
* LogRecord on the System.err stream.
*
* @see JACE.netsvcs.Logger.LogRecord
*/
public class StderrStrategy implements LoggingStrategy
{
/**
* Process the given LogRecord by printing it on the System.err stream.
*
*@param hostname host from which this LogRecord originated
*@param record LogRecord instance to process
*/
public void logRecord (String hostname,
LogRecord record)
{
record.print(hostname, true, System.err);
}
}
|