|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.alicebot.server.core.logging.Log
public class Log
Notifies of logging of Alicebot events to log files.
Field Summary | |
---|---|
static java.lang.String |
CHAT
Chat log path. |
static java.lang.String |
DATABASE
Database log path. |
static java.lang.String |
ERROR
Error log path. |
static java.lang.String |
GOSSIP
Gossip log path. |
static java.lang.String |
INTERPRETER
Interpreter log path. |
static java.lang.String |
LEARN
Learn log path. |
static java.lang.String |
LISTENERS
Listener log path. |
static java.lang.String |
MERGE
Merge log path. |
static java.lang.String |
RUNTIME
General runtime information log path. |
static java.lang.String |
STARTUP
Startup log path. |
static java.lang.String |
SYSTEM
OS shell use log path. |
static java.lang.String |
TARGETING
Targeting log path. |
Constructor Summary | |
---|---|
Log()
|
Method Summary | |
---|---|
static void |
devfail(DeveloperError e)
Notifies of developer error exceptions. |
static void |
devfail(java.lang.RuntimeException e)
Notifies of runtime exceptions. |
static void |
devfail(java.lang.String message,
java.lang.String type)
Logs a message and prints it to the console as a developer failure message. |
static void |
devfail(java.lang.String message,
java.lang.String[] types)
Same as devfail(String, String) , but
logs to multiple log files. |
static void |
devfail(java.lang.String message,
java.lang.Throwable exception,
java.lang.String type)
Logs a message and an exception and prints them to the console as a developer failure message. |
static void |
devinfo(java.lang.String message,
java.lang.String type)
Logs a message and prints it to the console as a developer info message. |
static void |
devinfo(java.lang.String message,
java.lang.String[] types)
Same as devinfo(String, String) , but
logs to multiple log files. |
static void |
log(java.lang.String[] message,
java.lang.String type)
Writes a multiline log message to the appropriate logfile. |
static void |
log(java.lang.String message,
java.lang.String type)
Writes a message to the appropriate logfile. |
static void |
log(java.lang.Throwable exception,
java.lang.String type)
Logs an exception to the appropriate logfile. |
static void |
userfail(java.lang.String[] message,
java.lang.String type)
Logs a multiline message and prints it to the console as a user failure message. |
static void |
userfail(java.lang.String[] message,
java.lang.String[] types)
Same as userfail(String, String[]) , but
logs multi-line messages. |
static void |
userfail(java.lang.String message,
java.lang.String type)
Logs a message and prints it to the console as a user failure message. |
static void |
userfail(java.lang.String message,
java.lang.String[] types)
Same as userfail(String, String) , but
logs to multiple log files. |
static void |
userfail(java.lang.String message,
java.lang.Throwable exception,
java.lang.String type)
Logs a message and an exception and prints them to the console as a user failure message. |
static void |
userfail(UserError e)
Notifies of user error exceptions. |
static void |
userinfo(java.lang.String[] message,
java.lang.String type)
Logs a multiline message and prints it to the console as a user info message. |
static void |
userinfo(java.lang.String[] message,
java.lang.String[] types)
Same as userinfo(String[], String) , but
logs to multiple log files. |
static void |
userinfo(java.lang.String message,
java.lang.String type)
Logs a message and prints it to the console as a user info message. |
static void |
userinfo(java.lang.String message,
java.lang.String[] types)
Same as userinfo(String, String) , but
logs to multiple log files. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CHAT
public static final java.lang.String LISTENERS
public static final java.lang.String DATABASE
public static final java.lang.String ERROR
public static final java.lang.String GOSSIP
public static final java.lang.String INTERPRETER
public static final java.lang.String LEARN
public static final java.lang.String MERGE
public static final java.lang.String STARTUP
public static final java.lang.String SYSTEM
public static final java.lang.String TARGETING
public static final java.lang.String RUNTIME
Constructor Detail |
---|
public Log()
Method Detail |
---|
public static void log(java.lang.String message, java.lang.String type)
message
- the text of the log eventtype
- the type of the log event
(one of ACCESS
, CHAT
, DATABASE
,
DEBUG
, ERROR
, EVENT
,
GOSSIP
, INTERPRETER
, MERGE
,
SERVLET
, STARTUP
, SYSTEM
, TARGETING
)public static void log(java.lang.Throwable exception, java.lang.String type)
exception
- the exceptiontype
- the type of the log event
(one of ACCESS
, CHAT
, DATABASE
,
DEBUG
, ERROR
, EVENT
,
GOSSIP
, INTERPRETER
, MERGE
,
SERVLET
, STARTUP
, SYSTEM
, TARGETING
)public static void log(java.lang.String[] message, java.lang.String type)
message
- the text of the log eventtype
- the type of the log event
(one of ACCESS
, CHAT
, DATABASE
,
DEBUG
, ERROR
, EVENT
,
GOSSIP
, INTERPRETER
, MERGE
,
SERVLET
, STARTUP
, SYSTEM
, TARGETING
)public static void userinfo(java.lang.String message, java.lang.String type)
message
- the text of the log eventtype
- the type of the log event
(one of ACCESS
, CHAT
, DATABASE
,
DEBUG
, ERROR
, EVENT
,
GOSSIP
, INTERPRETER
, MERGE
,
SERVLET
, STARTUP
, SYSTEM
)public static void userinfo(java.lang.String message, java.lang.String[] types)
userinfo(String, String)
, but
logs to multiple log files.
message
- the text of the log eventtypes
- the log typespublic static void userinfo(java.lang.String[] message, java.lang.String type)
message
- the text of the log eventtype
- the type of the log event
(one of ACCESS
, CHAT
, DATABASE
,
DEBUG
, ERROR
, EVENT
,
GOSSIP
, INTERPRETER
, MERGE
,
SERVLET
, STARTUP
, SYSTEM
)public static void userinfo(java.lang.String[] message, java.lang.String[] types)
userinfo(String[], String)
, but
logs to multiple log files.
message
- the text of the log eventtypes
- the log typespublic static void userfail(java.lang.String message, java.lang.String type)
message
- the text of the log eventtype
- the type of the log event
(one of ACCESS
, CHAT
, DATABASE
,
DEBUG
, ERROR
, EVENT
,
GOSSIP
, INTERPRETER
, MERGE
,
SERVLET
, STARTUP
, SYSTEM
)public static void userfail(java.lang.String[] message, java.lang.String type)
message
- the text of the log eventtype
- the type of the log event
(one of ACCESS
, CHAT
, DATABASE
,
DEBUG
, ERROR
, EVENT
,
GOSSIP
, INTERPRETER
, MERGE
,
SERVLET
, STARTUP
, SYSTEM
)public static void userfail(java.lang.String message, java.lang.String[] types)
userfail(String, String)
, but
logs to multiple log files.
message
- the text of the log eventtypes
- the log typespublic static void userfail(java.lang.String[] message, java.lang.String[] types)
userfail(String, String[])
, but
logs multi-line messages.
message
- the text of the log eventtypes
- the log typespublic static void userfail(java.lang.String message, java.lang.Throwable exception, java.lang.String type)
message
- the text of the log eventtype
- the type of the log event
(one of ACCESS
, CHAT
, DATABASE
,
DEBUG
, ERROR
, EVENT
,
GOSSIP
, INTERPRETER
, MERGE
,
SERVLET
, STARTUP
, SYSTEM
)public static void userfail(UserError e)
public static void devinfo(java.lang.String message, java.lang.String type)
message
- the text of the log eventtype
- the type of the log event
(one of ACCESS
, CHAT
, DATABASE
,
DEBUG
, ERROR
, EVENT
,
GOSSIP
, INTERPRETER
, MERGE
,
SERVLET
, STARTUP
, SYSTEM
)public static void devinfo(java.lang.String message, java.lang.String[] types)
devinfo(String, String)
, but
logs to multiple log files.
message
- the text of the log eventtypes
- the log typespublic static void devfail(java.lang.String message, java.lang.String type)
message
- the text of the log eventtype
- the type of the log event
(one of ACCESS
, CHAT
, DATABASE
,
DEBUG
, ERROR
, EVENT
,
GOSSIP
, INTERPRETER
, MERGE
,
SERVLET
, STARTUP
, SYSTEM
)public static void devfail(java.lang.String message, java.lang.Throwable exception, java.lang.String type)
message
- the text of the log eventexception
- the exceptiontype
- the type of the log event
(one of ACCESS
, CHAT
, DATABASE
,
DEBUG
, ERROR
, EVENT
,
GOSSIP
, INTERPRETER
, MERGE
,
SERVLET
, STARTUP
, SYSTEM
)public static void devfail(java.lang.String message, java.lang.String[] types)
devfail(String, String)
, but
logs to multiple log files.
message
- the text of the log eventtypes
- the log typespublic static void devfail(DeveloperError e)
public static void devfail(java.lang.RuntimeException e)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |