Compartilhar via


LoggerDescription Class

Definition

This class is used to contain information about a logger as a collection of values that can be used to instantiate the logger and can be serialized to be passed between different processes.

public ref class LoggerDescription
public class LoggerDescription
type LoggerDescription = class
Public Class LoggerDescription
Inheritance
LoggerDescription

Constructors

LoggerDescription(String, String, String, String, LoggerVerbosity, Boolean)

Creates a logger description from given data

LoggerDescription(String, String, String, String, LoggerVerbosity)

Creates a logger description from given data

Properties

IsOptional
LoggerSwitchParameters

Returns the string of logger parameters, null if there are none

Name

This property generates the logger name by appending together the class name and assembly name

Verbosity

Return the verbosity for this logger (from command line all loggers get same verbosity)

Methods

CreateLogger()

Create an ILogger out of the data in this description. This method may throw a variety of reflection exceptions if the data is invalid. It is the resposibility of the caller to handle these exceptions if desired.

Applies to