blob: b79124993859dd4c40bd7c5d90ae3c7bb2440ea9 (
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
|
/*************************************************
*
* = PACKAGE
* netsvcs.Logger
*
* = FILENAME
* LogMessageReceiver.java
*
*@author Everett Anderson
*
*************************************************/
package JACE.netsvcs.Logger;
import java.io.*;
/**
* Encapsulates the handling of a LogRecord from a given host, allowing
* easy swapping of behavior in the logging service. Strategies could
* be developed to save to a file, print on a certain stream, forward
* to another service, etc.
*
*@see StderrStrategy
*@see LogRecord
*/
public interface LoggingStrategy
{
/**
* Process the given LogRecord.
*
*@param hostname host from which this LogRecord originated
*@param record LogRecord instance to process
*/
public void logRecord (String hostname,
LogRecord record);
}
|