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

LogScope Class

Extends ILogScope
A logging scope to be used in "using" blocks.

Properties

CorrelationID CorrelationID[Get]

Member Functions

Constructs a logging scope to be used in "using" blocks.
Parameters
logger
The logger.
verbosity
The verbosity.
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.
Logs a verbose message.
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.
Logs an info message.
Logs an info message with edit time callsite information.
Logs a debug message.
Logs a debug message with edit time callsite information.
Logs a debug message.
Logs a warning message.
Logs a warning message.
Logs an error with an exception.
Logs an error with an exception.
Logs an error with an exception.
Logs an error with an exception, and an error code.
Logs an error with an exception, without an error code.
Logs an error with an exception.
Logs an error without an exception.
Logs an error with a message.
Explicitly start a scope.
Explicitly start a scope.
Explicitly end a scope. Must have been started already.
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
Disposes the scope.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon