Class SagaLogger
- All Implemented Interfaces:
ISagaLogger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
debug
(LoggingContext context, 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
(LoggingContext context, 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
(LoggingContext context, 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
(LoggingContext context, 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
(LoggingContext context, 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 messagewithContext
(LoggingContext context) Provides aISagaLoggerWithContext
instance based on the current class with a predefined context allowing the developer to use a logger without having to specify the same context over and over.
-
Constructor Details
-
SagaLogger
-
-
Method Details
-
trace
public void trace(LoggingContext context, LoggingCategory category, LoggingMessage message, Throwable throwable) Description copied from interface:ISagaLogger
Log a message at the TRACE level according to the logging category, logging context, message and recommendation message
- Specified by:
trace
in interfaceISagaLogger
- Parameters:
context
- the logging contextLoggingContext
category
- the logging categoryLoggingCategory
message
- the templated messageLoggingMessage
throwable
- a throwableThrowable
-
debug
public void debug(LoggingContext context, LoggingCategory category, LoggingMessage message, Throwable throwable) Description copied from interface:ISagaLogger
Log a message at the DEBUG level according to the logging category, logging context, message and recommendation message
- Specified by:
debug
in interfaceISagaLogger
- Parameters:
context
- the logging contextLoggingContext
category
- the logging categoryLoggingCategory
message
- the templated messageLoggingMessage
throwable
- a throwableThrowable
-
info
public void info(LoggingContext context, LoggingCategory category, LoggingMessage message, Throwable throwable) Description copied from interface:ISagaLogger
Log a message at the INFO level according to the logging category, logging context, message and recommendation message
- Specified by:
info
in interfaceISagaLogger
- Parameters:
context
- the logging contextLoggingContext
category
- the logging categoryLoggingCategory
message
- the templated messageLoggingMessage
throwable
- a throwableThrowable
-
warn
public void warn(LoggingContext context, LoggingCategory category, LoggingMessage message, LoggingMessage recommendation, Throwable throwable) Description copied from interface:ISagaLogger
Log a message at the WARN level according to the logging category, logging context, message and recommendation message
- Specified by:
warn
in interfaceISagaLogger
- Parameters:
context
- the logging contextLoggingContext
category
- the logging categoryLoggingCategory
message
- the templated messageLoggingMessage
recommendation
- the recommendation messageLoggingMessage
throwable
- a throwableThrowable
-
error
public void error(LoggingContext context, LoggingCategory category, LoggingMessage message, LoggingMessage recommendation, Throwable throwable) Description copied from interface:ISagaLogger
Log a message at the ERROR level according to the logging category, logging context, message and recommendation message
- Specified by:
error
in interfaceISagaLogger
- Parameters:
context
- the logging contextLoggingContext
category
- the logging categoryLoggingCategory
message
- the templated messageLoggingMessage
recommendation
- the recommendation messageLoggingMessage
throwable
- a throwableThrowable
-
withContext
Description copied from interface:ISagaLogger
Provides a
ISagaLoggerWithContext
instance based on the current class with a predefined context allowing the developer to use a logger without having to specify the same context over and over.- Specified by:
withContext
in interfaceISagaLogger
- Parameters:
context
- the logging contextLoggingContext
- Returns:
- a logger with a default context.
- See Also:
-