public class JALog
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
STD_LOG_FILE
The standard file location for the JA log's file handler.
|
static java.lang.String |
STD_LOG_NAME
The standard JA log name.
|
Constructor and Description |
---|
JALog() |
Modifier and Type | Method and Description |
---|---|
static void |
createLog()
Creates a logger using the standard name and file handler name.
|
static void |
createLog(java.lang.String name,
java.lang.String file)
Creates a logger with the given name and an attached file handler
using the given file name.
|
static void |
disableLog()
Disables the JA logger, which is initially disabled by default.
|
static void |
enableLog()
Enables the JA logger, which is initially disabled by default.
|
java.util.logging.Logger |
getLogger()
Returns the logger, or
null if none has yet been created. |
static void |
info(java.lang.String msg)
Logs the given INFO message to this process's logger.
|
static void |
infoAndThread(java.lang.String msg)
Logs the given INFO message, plus the current thread's name and id
to this process's logger.
|
static void |
infoAndThread(java.lang.String msg,
java.lang.Thread t)
Logs the given INFO message, plus the given thread's name and id
to this process's logger.
|
public static final java.lang.String STD_LOG_NAME
public static final java.lang.String STD_LOG_FILE
public static void createLog(java.lang.String name, java.lang.String file)
public static void createLog()
public java.util.logging.Logger getLogger()
null
if none has yet been created.public static void enableLog()
public static void disableLog()
public static void info(java.lang.String msg)
public static void infoAndThread(java.lang.String msg)
public static void infoAndThread(java.lang.String msg, java.lang.Thread t)