public class LogUtil
extends java.lang.Object
Constructor and Description |
---|
LogUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
formatMessage(int sessionId,
java.lang.String message)
Print the session id in front of the message
|
static java.lang.String |
formatMessage(java.net.Socket socket,
java.lang.String message)
Print the local port of the given socket in front of the message
|
public static final java.lang.String formatMessage(java.net.Socket socket, java.lang.String message)
socket
- a bound socketmessage
- the message to formatpublic static final java.lang.String formatMessage(int sessionId, java.lang.String message)
sessionId
- a session idmessage
- the message to format