Package com.persequor.extension.logging
Class SagaLoggerWithContext
java.lang.Object
com.persequor.extension.logging.SagaLoggerWithContext
- All Implemented Interfaces:
ISagaLoggerWithContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
debug
(LoggingCategory category, LoggingMessage message, Throwable throwable) Log a message at the DEBUG level according to the logging category, logging context, message and recommendation messagevoid
error
(LoggingCategory category, LoggingMessage message, LoggingMessage recommendation, Throwable throwable) Log a message at the ERROR level according to the logging category, logging context, message and recommendation messagevoid
info
(LoggingCategory category, LoggingMessage message, Throwable throwable) Log a message at the INFO level according to the logging category, logging context, message and recommendation messagevoid
trace
(LoggingCategory category, LoggingMessage message, Throwable throwable) Log a message at the TRACE level according to the logging category, logging context, message and recommendation messagevoid
warn
(LoggingCategory category, LoggingMessage message, LoggingMessage recommendation, Throwable throwable) Log a message at the WARN level according to the logging category, logging context, message and recommendation messageProvidesISagaLogger
instance allowing the developer to use a logger with a custom context.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.persequor.extension.logging.ISagaLoggerWithContext
changeContext, debug, error, info, trace, warn
-
Constructor Details
-
SagaLoggerWithContext
-
-
Method Details
-
trace
Description copied from interface:ISagaLoggerWithContext
Log a message at the TRACE level according to the logging category, logging context, message and recommendation message
- Specified by:
trace
in interfaceISagaLoggerWithContext
- Parameters:
category
- the logging categoryLoggingCategory
message
- the templated messageLoggingMessage
throwable
- a throwable to be loggedThrowable
-
debug
Description copied from interface:ISagaLoggerWithContext
Log a message at the DEBUG level according to the logging category, logging context, message and recommendation message
- Specified by:
debug
in interfaceISagaLoggerWithContext
- Parameters:
category
- the logging categoryLoggingCategory
message
- the templated messageLoggingMessage
throwable
- a throwable to be loggedThrowable
-
info
Description copied from interface:ISagaLoggerWithContext
Log a message at the INFO level according to the logging category, logging context, message and recommendation message
- Specified by:
info
in interfaceISagaLoggerWithContext
- Parameters:
category
- the logging categoryLoggingCategory
message
- the templated messageLoggingMessage
throwable
- a throwable to be loggedThrowable
-
warn
public void warn(LoggingCategory category, LoggingMessage message, LoggingMessage recommendation, Throwable throwable) Description copied from interface:ISagaLoggerWithContext
Log a message at the WARN level according to the logging category, logging context, message and recommendation message
- Specified by:
warn
in interfaceISagaLoggerWithContext
- Parameters:
category
- the logging categoryLoggingCategory
message
- the templated messageLoggingMessage
recommendation
- the recommendation messageLoggingMessage
throwable
- a throwable to be loggedThrowable
-
error
public void error(LoggingCategory category, LoggingMessage message, LoggingMessage recommendation, Throwable throwable) Description copied from interface:ISagaLoggerWithContext
Log a message at the ERROR level according to the logging category, logging context, message and recommendation message
- Specified by:
error
in interfaceISagaLoggerWithContext
- Parameters:
category
- the logging categoryLoggingCategory
message
- the templated messageLoggingMessage
recommendation
- the recommendation messageLoggingMessage
throwable
- a throwable to be loggedThrowable
-
withoutContext
Description copied from interface:ISagaLoggerWithContext
Provides
ISagaLogger
instance allowing the developer to use a logger with a custom context.- Specified by:
withoutContext
in interfaceISagaLoggerWithContext
- Returns:
- an instance of
ISagaLogger
. - See Also:
-