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 an info message.
Logs an info message.
Logs a debug message.
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.
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
void Log
( CorrelationID correlationId,
VLoggerVerbosity verbosity,
Exception exception,
ErrorCode errorCode,
string message,
params object [] parameters )
void Log
( CorrelationID correlationId,
VLoggerVerbosity verbosity,
ErrorCode errorCode,
string message,
params object [] parameters )
Disposes the scope.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon