java.lang.Object
dev.netcode.util.LogMessage
Represents a message which should be logged to an implementation of
Includes at least the
It can also include an array of stacktraces which is usually generated whenever an Exception is thrown. This array can be used to customly display the stacktrace.
Logger.Includes at least the
LogLevel and message. Can additionally include the
stacktrace offset which is a variable that represents the depth of the callstack whenever
a message should be logged. It can be used to display the class that
called Logger.log(LogLevel, String).It can also include an array of stacktraces which is usually generated whenever an Exception is thrown. This array can be used to customly display the stacktrace.
-
Constructor Summary
ConstructorsConstructorDescriptionLogMessage(LogLevel logLevel, String message)Instatiates LogMessage setting stacktrace offset to 0LogMessage(LogLevel logLevel, String message, int stackTraceOffset)Instatiates LogMessage and sets given stacktrace offsetLogMessage(LogLevel logLevel, String message, int stackTraceOffset, StackTraceElement[] stacktrace)Instantiates LogMessage and sets stacktrace offset and stacktrace to given variablesLogMessage(LogLevel logLevel, String message, StackTraceElement[] stacktrace)Instantiates LogMessage and sets stacktrace offset to 0 and stacktrace array to given -
Method Summary
-
Constructor Details
-
LogMessage
Instatiates LogMessage setting stacktrace offset to 0- Parameters:
logLevel- of the messagemessage- to be logged
-
LogMessage
Instatiates LogMessage and sets given stacktrace offset- Parameters:
logLevel- of the messagemessage- to be loggedstackTraceOffset- of the calling class
-
LogMessage
Instantiates LogMessage and sets stacktrace offset to 0 and stacktrace array to given- Parameters:
logLevel- of the messagemessage- to be loggedstacktrace- of method calls
-
LogMessage
public LogMessage(LogLevel logLevel, String message, int stackTraceOffset, StackTraceElement[] stacktrace)Instantiates LogMessage and sets stacktrace offset and stacktrace to given variables- Parameters:
logLevel- of the messagemessage- to be loggedstackTraceOffset- of the calling methodstacktrace- of method calls
-