C# Class Serilog.Configuration.LoggerMinimumLevelConfiguration

Controls sink configuration.
Mostra file Open project: serilog/serilog Class Usage Examples

Public Methods

Method Description
ControlledBy ( LoggingLevelSwitch levelSwitch ) : LoggerConfiguration

Sets the minimum level to be dynamically controlled by the provided switch.

Debug ( ) : LoggerConfiguration

Internal system events that aren't necessarily observable from the outside.

Error ( ) : LoggerConfiguration

Functionality is unavailable, invariants are broken or data is lost.

Fatal ( ) : LoggerConfiguration

If you have a pager, it goes off when one of these occurs.

Information ( ) : LoggerConfiguration

The lifeblood of operational intelligence - things happen.

Is ( LogEventLevel minimumLevel ) : LoggerConfiguration

Sets the minimum level at which events will be passed to sinks.

Override ( string source, LogEventLevel minimumLevel ) : LoggerConfiguration

Override the minimum level for events from a specific namespace or type name.

Override ( string source, LoggingLevelSwitch levelSwitch ) : LoggerConfiguration

Override the minimum level for events from a specific namespace or type name.

Verbose ( ) : LoggerConfiguration

Anything and everything you might want to know about a running block of code.

Warning ( ) : LoggerConfiguration

Service is degraded or endangered.

Private Methods

Method Description
LoggerMinimumLevelConfiguration ( LoggerConfiguration loggerConfiguration, Action setMinimum, Action setLevelSwitch, LoggingLevelSwitch>.Action addOverride ) : System

Method Details

ControlledBy() public method

Sets the minimum level to be dynamically controlled by the provided switch.
public ControlledBy ( LoggingLevelSwitch levelSwitch ) : LoggerConfiguration
levelSwitch Serilog.Core.LoggingLevelSwitch The switch.
return LoggerConfiguration

Debug() public method

Internal system events that aren't necessarily observable from the outside.
public Debug ( ) : LoggerConfiguration
return LoggerConfiguration

Error() public method

Functionality is unavailable, invariants are broken or data is lost.
public Error ( ) : LoggerConfiguration
return LoggerConfiguration

Fatal() public method

If you have a pager, it goes off when one of these occurs.
public Fatal ( ) : LoggerConfiguration
return LoggerConfiguration

Information() public method

The lifeblood of operational intelligence - things happen.
public Information ( ) : LoggerConfiguration
return LoggerConfiguration

Is() public method

Sets the minimum level at which events will be passed to sinks.
public Is ( LogEventLevel minimumLevel ) : LoggerConfiguration
minimumLevel LogEventLevel The minimum level to set.
return LoggerConfiguration

Override() public method

Override the minimum level for events from a specific namespace or type name.
public Override ( string source, LogEventLevel minimumLevel ) : LoggerConfiguration
source string The (partial) namespace or type name to set the override for.
minimumLevel LogEventLevel The minimum level applied to loggers for matching sources.
return LoggerConfiguration

Override() public method

Override the minimum level for events from a specific namespace or type name.
public Override ( string source, LoggingLevelSwitch levelSwitch ) : LoggerConfiguration
source string The (partial) namespace or type name to set the override for.
levelSwitch Serilog.Core.LoggingLevelSwitch The switch controlling loggers for matching sources.
return LoggerConfiguration

Verbose() public method

Anything and everything you might want to know about a running block of code.
public Verbose ( ) : LoggerConfiguration
return LoggerConfiguration

Warning() public method

Service is degraded or endangered.
public Warning ( ) : LoggerConfiguration
return LoggerConfiguration