public class Log extends Object
Constructor and Description |
---|
Log() |
Modifier and Type | Method and Description |
---|---|
static void |
debug(String message)
Logs a debug message to the console as INFO if Settings.Debug is true.
|
static void |
error(String message)
Logs an error message to the console as ERROR.
|
static void |
info(String message)
Logs the message to the console as INFO.
|
static void |
toLog(String message)
Logs a message to the Errors.txt with a timestamp.
|
static void |
toLog(String source,
Collection<Throwable> e)
Logs multiple caught Errors to Errors.txt.
|
static void |
toLog(String source,
Throwable e)
Logs trace of caught Exception to Errors.txt and notifies on console.
|
public static void info(String message)
message
- "Message" will show up as [INFO][Plan]: Messagepublic static void error(String message)
message
- "Message" will show up as [ERROR][Plan]: Messagepublic static void debug(String message)
message
- "Message" will show up as [INFO][Plan]: [DEBUG] Messagepublic static void toLog(String source, Throwable e)
source
- Class name the exception was caught in.e
- Throwable, eg NullPointerExceptionpublic static void toLog(String source, Collection<Throwable> e)
source
- Class name the exception was caught in.e
- Collection of Throwables, eg NullPointerExceptionpublic static void toLog(String message)
message
- Message to log to Errors.txt [timestamp] MessageCopyright © 2017. All rights reserved.