Class Logging
- Namespace
- DotNetDo
- Assembly
- DotNetDo.Core.dll
Configures DotNetDo's environment-aware Serilog output.
public static class LoggingProperties
Level
Controls DotNetDo's output volume. It sets the bootstrap logger minimum and defaults for newly created tool commands. The default is Serilog.Events.LogEventLevel.Information.
public static LogEventLevel Level { get; set; }Property Value
- LogEventLevel
Methods
CreateRedactingLogger(LoggerConfiguration)
Redacts DotNetDo.Secret values from log events.
public static ILogger CreateRedactingLogger(this LoggerConfiguration configuration)Parameters
configurationLoggerConfiguration
Returns
- ILogger
DefaultOutput(LoggerSinkConfiguration)
Writes log events to the default output sink, which is determined by the environment. Supported CI providers receive native annotations; otherwise output uses the console sink. Otherwise, it will write to the console.
public static LoggerConfiguration DefaultOutput(this LoggerSinkConfiguration sinkConfiguration)Parameters
sinkConfigurationLoggerSinkConfiguration
Returns
- LoggerConfiguration