Package com.clickhouse.logging
Class LogMessage
java.lang.Object
com.clickhouse.logging.LogMessage
Log message with arguments and/or error.
-
Method Summary
Modifier and TypeMethodDescriptionGets log message.Gets error which may or may not be null.booleanChecks if error is available or not.static LogMessageCreates a log message with arguments.
-
Method Details
-
of
Creates a log message with arguments. The latest argument could be ajava.lang.Throwableproviding details like stack trace of an error.- Parameters:
format- Object format, could be nullarguments- arguments, could be null or empty- Returns:
- log message
-
getMessage
Gets log message.- Returns:
- non-null log message
-
getThrowable
Gets error which may or may not be null.- Returns:
- error, could be null
-
hasThrowable
public boolean hasThrowable()Checks if error is available or not.- Returns:
- true if there's error; false otherwise
-