| java.lang.Object echo2example.chatserver.Log
Log | public class Log (Code) | | Primitive utility to log posted messages and users entering and leaving
chat room.
|
Method Summary | |
final public static void | log(int action, String remoteHost, String userName, String message) Logs a chat operation. | final public static void | setLogStream(PrintStream logStream) Sets the PrintStream to which log messages will be written. |
ACTION_AUTH | final public static int ACTION_AUTH(Code) | | |
ACTION_EXIT | final public static int ACTION_EXIT(Code) | | |
ACTION_POST | final public static int ACTION_POST(Code) | | |
log | final public static void log(int action, String remoteHost, String userName, String message)(Code) | | Logs a chat operation.
Parameters: action - the type of action taken, one of the following values:ACTION_POST ACTION_AUTH ACTION_EXIT
Parameters: remoteHost - the remote host performing the action Parameters: userName - the name of the user Parameters: message - the posted message content, if applicable |
setLogStream | final public static void setLogStream(PrintStream logStream)(Code) | | Sets the PrintStream to which log messages will be written.
Parameters: logStream - the log PrintStream |
|
|