public class Log extends Object
Methods of Abstract Plugin Framework log utility are used.
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 com.djrapitops.plugin.utilities.log.DebugInfo |
debug(String task,
String... messages)
Used for logging larger debug complexes.
|
static com.djrapitops.plugin.utilities.log.DebugInfo |
debug(String task,
String message)
Used for logging larger debug complexes.
|
static void |
error(String message)
Logs an error message to the console as ERROR.
|
static com.djrapitops.plugin.utilities.log.DebugInfo |
getDebug(String task)
Used for logging larger debug complexes.
|
static void |
info(String message)
Logs the message to the console as INFO.
|
static void |
infoColor(String message)
Sends a message to the console with the ChatColors.
|
static void |
logDebug(String task)
Logs the full debug complex to the debug log.
|
static void |
logDebug(String task,
long time)
Logs the full debug complex to the debug log with an execution time.
|
static void |
logStackTrace(Throwable e) |
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 infoColor(String message)
message
- Message to send.public 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 com.djrapitops.plugin.utilities.log.DebugInfo debug(String task, String message)
task
- complex this debug message is a part of.message
- Single message to add to the debug log.public static com.djrapitops.plugin.utilities.log.DebugInfo debug(String task, String... messages)
task
- complex this debug message is a part of.messages
- All messages to add to the debug log.public static com.djrapitops.plugin.utilities.log.DebugInfo getDebug(String task)
task
- complex to getpublic static void logDebug(String task)
task
- complex to log.public static void logDebug(String task, long time)
task
- complex to log.time
- execution time.public 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 Throwable
, eg NullPointerExceptionpublic static void logStackTrace(Throwable e)
Copyright © 2017. All rights reserved.