Skip to content

Commit 043df81

Browse files
author
Donn Relacion
committed
add support to AuditTo.Logger
1 parent 71839b8 commit 043df81

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Serilog.Settings.Configuration/Settings/Configuration/SurrogateConfigurationMethods.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,13 @@ static LoggerConfiguration Sink(
6767
LoggingLevelSwitch levelSwitch = null)
6868
=> auditSinkConfiguration.Sink(sink, restrictedToMinimumLevel, levelSwitch);
6969

70+
static LoggerConfiguration Logger(
71+
LoggerAuditSinkConfiguration auditSinkConfiguration,
72+
Action<LoggerConfiguration> configureLogger,
73+
LogEventLevel restrictedToMinimumLevel = LevelAlias.Minimum,
74+
LoggingLevelSwitch levelSwitch = null)
75+
=> auditSinkConfiguration.Logger(configureLogger, restrictedToMinimumLevel, levelSwitch);
76+
7077
// .Filter...
7178
// =======
7279
// TODO: add overload for array argument (ILogEventEnricher[])

0 commit comments

Comments
 (0)