API reference
API reference
Select your platform
No SDKs available
No versions available

ICoreLogger Interface

A common interface to core logging functionality

Properties

The correlation ID allows the tracing of an operation from beginning to end. It can be linked to other IDs to form a full chain when it branches out or moves to other domains. If not supplied explicitly while logging, it will be inherited from the thread storage or a new one will be generated if none exist.

Member Functions

Logs a verbose message.
Parameters
message
The message as a format string (e.g "My value is: {0}).</param> <param name="parameters">The parameters.
Logs a verbose message.
Parameters
correlationId
The correlation ID.
message
The message as a format string (e.g "My value is: {0}).</param> <param name="parameters">The parameters.
Logs a verbose message with edit time callsite information.
Parameters
message
The message as a format string (e.g "My value is: {0}).</param> <param name="p1">Parameter 1.</param> <param name="p2">Parameter 2.</param> <param name="p3">Parameter 3.</param> <param name="p4">Parameter 4.</param> <param name="memberName">The caller site name.</param> <param name="sourceFilePath">The caller source file path.</param> <param name="sourceLineNumber">The caller source line number.
Logs an info message.
Parameters
message
The message as a format string (e.g "My value is: {0}).</param> <param name="parameters">The parameters.
Logs an info message.
Parameters
correlationId
The correlation ID.
message
The message as a format string (e.g "My value is: {0}).</param> <param name="parameters">The parameters.
Logs an info message with edit time callsite information.
Parameters
message
The message as a format string (e.g "My value is: {0}).</param> <param name="p1">Parameter 1.</param> <param name="p2">Parameter 2.</param> <param name="p3">Parameter 3.</param> <param name="p4">Parameter 4.</param> <param name="memberName">The caller site name.</param> <param name="sourceFilePath">The caller source file path.</param> <param name="sourceLineNumber">The caller source line number.
Logs a debug message.
Parameters
message
The message as a format string (e.g "My value is: {0}).</param> <param name="parameters">The parameters.
Logs a debug message with edit time callsite information.
Parameters
message
The message as a format string (e.g "My value is: {0}).</param> <param name="p1">Parameter 1.</param> <param name="p2">Parameter 2.</param> <param name="p3">Parameter 3.</param> <param name="p4">Parameter 4.</param> <param name="memberName">The caller site name.</param> <param name="sourceFilePath">The caller source file path.</param> <param name="sourceLineNumber">The caller source line number.
Logs a debug message.
Parameters
correlationId
The correlation ID.
message
The message as a format string (e.g "My value is: {0}).</param> <param name="parameters">The parameters.
Logs a warning message.
Parameters
correlationId
The correlation ID.
message
The message as a format string (e.g "My value is: {0}).</param> <param name="parameters">The parameters.
Logs a warning message.
Parameters
message
The message as a format string (e.g "My value is: {0}).</param> <param name="parameters">The parameters.
Logs an error with an exception.
Parameters
correlationId
The correlation ID.
errorCode
The error code.
message
The message as a format string (e.g "My value is: {0}).</param> <param name="parameters">The parameters.
Logs an error with an exception.
Parameters
errorCode
The error code.
message
The message as a format string (e.g "My value is: {0}).</param> <param name="parameters">The parameters.
Logs an error with an exception.
Parameters
correlationId
The correlation ID.
exception
The exception to log.
errorCode
The error code.
message
The message as a format string (e.g "My value is: {0}).</param> <param name="parameters">The parameters.
Logs an error without an exception.
Parameters
correlationId
The correlation ID.
message
The message as a format string (e.g "My value is: {0}).</param> <param name="parameters">The parameters.
Logs an error with a message.
Parameters
message
The message as a format string (e.g "My value is: {0}).</param> <param name="parameters">The parameters.
Logs an error with an exception.
Parameters
correlationId
The correlation ID.
exception
The exception to log.
message
The message as a format string (e.g "My value is: {0}).</param> <param name="parameters">The parameters.
Logs an error with an exception, and an error code.
Parameters
errorCode
The error code.
exception
The exception to log.
message
The message as a format string (e.g "My value is: {0}).</param> <param name="parameters">The parameters.
Logs an error with an exception, without an error code.
Parameters
exception
The exception to log.
message
The message as a format string (e.g "My value is: {0}).</param> <param name="parameters">The parameters.
Returns a logging scope to be used in a "using" block.
Parameters
verbosity
The verbosity of the logging.
message
The message to log.
parameters
The parameter
Returns
The scope.
Returns a logging scope to be used in a "using" block.
Parameters
correlationId
The correlation ID to use for the scope.
verbosity
The verbosity of the logging.
message
The message to log.
parameters
The parameter
Returns
The scope.
Explicitly start a scope.
Parameters
correlationId
The correlation ID.
verbosity
The verbosity of the logging.
message
The message to log.
parameters
The parameter
Returns
Explicitly start a scope.
Parameters
verbosity
The verbosity of the logging.
message
The message to log.
parameters
The parameter
Returns
Explicitly end a scope. Must have been started already.
Parameters
sequenceId
Correlates two correlation IDs. This is used to indicate nesting, branching, or exchanges. The purpose is to allow a complete trail up to the source when needed.
Parameters
newCorrelationId
The source correlation ID (eg. child operation).
rootCorrelationId
The target correlation ID (eg. root operation).
Logs a message.
Parameters
correlationId
The correlation ID.
verbosity
The verbosity of the logging.
message
The message to log.
parameters
The parameter
Logs a message with an exception.
Parameters
correlationId
The correlation ID.
verbosity
The verbosity of the logging.
exception
The exception to log.
errorCode
The error code.
message
The message to log.
parameters
The parameter
Logs a message without an exception.
Parameters
correlationId
The correlation ID.
verbosity
The verbosity of the logging.
errorCode
The error code.
message
The message to log.
parameters
The parameter
Did you find this page helpful?
Thumbs up icon
Thumbs down icon