| java.lang.Object Shared.Logging.Log
Log | public class Log (Code) | | My simple log package.
Just call one of the static methods:
Trace(), Info(), Warn() and Error().
Additionally, one can set the log level by a call to the
static method SetLogLevel() and pass one of the static ints:
TraceLevel, InfoLevel, WarnLevel, ErrorLevel, or
NoLogLevel, which turns out logging.
|
ErrorLevel | final public static int ErrorLevel(Code) | | |
InfoLevel | final public static int InfoLevel(Code) | | |
NoLogLevel | final public static int NoLogLevel(Code) | | |
SocketLoggerIdentification | final public static String SocketLoggerIdentification(Code) | | |
TraceLevel | final public static int TraceLevel(Code) | | |
WarnLevel | final public static int WarnLevel(Code) | | |
DirectOutput | public static void DirectOutput(String message)(Code) | | This is a special mode: It just outputs the
passed message directly without formatting it.
|
EnableFileLogger | public static void EnableFileLogger()(Code) | | Enables file logging.
To be called, before Log is used for logging.
|
EnableSocketLogger | public static void EnableSocketLogger(String host, int port)(Code) | | Enables socket logging to host, port.
To be called, before Log is used for logging.
|
SetBasisFileName | public static void SetBasisFileName(String basisFileName)(Code) | | Sets the basis file name.
To be called, before Log is used for logging.
|
SetFileSizeLimitInBytes | public static void SetFileSizeLimitInBytes(int fileSizeLimitInBytes)(Code) | | Sets the file size for the file logger.
To be called, before Log is used for logging.
|
SetLogIdentifier | public static void SetLogIdentifier(String identifier)(Code) | | This static method can be called anytime to set a log identifier.
The passed identifier is written out on the beginning of
each log textline, before the loglevel text.
|
SetLogLevel | public static void SetLogLevel(int newLogLevel)(Code) | | |
SetNumberOfFiles | public static void SetNumberOfFiles(int numberOfFiles)(Code) | | Sets the number of files for the file logger.
To be called, before Log is used for logging.
|
publish | public synchronized void publish(int level, String message)(Code) | | |
publish | public synchronized void publish(int level, Throwable throwable)(Code) | | |
publishDirectly | public synchronized void publishDirectly(String message)(Code) | | |
updateLogIdentifier | public void updateLogIdentifier()(Code) | | Sets the log identifier which is written out on the beginning of
each log textline, before the loglevel text.
|
|
|