@@ -29,7 +29,7 @@ public static IHostBuilder UseEazyLogging(this IHostBuilder hostBuilder,
29
29
. Enrich
30
30
. WithProperty ( "Environment" ,
31
31
context . HostingEnvironment . EnvironmentName ) //development ? production
32
- . Enrich . WithProperty ( "Application" , options . ApplicationName ) //App Name
32
+ . Enrich . WithProperty ( "Application" , options . Name ) //App Name
33
33
. Enrich . WithProperty ( "Instance" , "Instance" )
34
34
. Enrich . WithProperty ( "Version" , "v1" ) ;
35
35
@@ -47,12 +47,12 @@ in options.MinimumLevelOverrides
47
47
loggerConfig . MinimumLevel . Override ( key , FetchLogEventLevel ( value ) ) ;
48
48
49
49
50
- options . ExcludePaths ? . ToList ( ) . ForEach ( p
50
+ options . IgnoredPaths ? . ToList ( ) . ForEach ( p
51
51
=> loggerConfig . Filter
52
52
. ByExcluding (
53
53
Matching . WithProperty < string > ( "RequestPath" , n => n . EndsWith ( p ) ) ) ) ;
54
54
55
- options . ExcludeProperties ? . ToList ( ) . ForEach ( p
55
+ options . IgnoredProperties ? . ToList ( ) . ForEach ( p
56
56
=> loggerConfig . Filter
57
57
. ByExcluding ( Matching . WithProperty ( p ) ) ) ;
58
58
@@ -97,7 +97,7 @@ private static void MapOptions(LoggerOptions loggerOptions, string appOptions,
97
97
loggerConfig . Enrich . FromLogContext ( )
98
98
. MinimumLevel . Is ( level )
99
99
. Enrich . WithProperty ( "Environment" , environmentName )
100
- . Enrich . WithProperty ( "Application" , loggerOptions . ApplicationName )
100
+ . Enrich . WithProperty ( "Application" , loggerOptions . Name )
101
101
. Enrich . WithProperty ( "Instance" , "Instance" )
102
102
. Enrich . WithProperty ( "Version" , "v1" ) ;
103
103
@@ -110,12 +110,12 @@ private static void MapOptions(LoggerOptions loggerOptions, string appOptions,
110
110
loggerConfig . MinimumLevel . Override ( key , logLevel ) ;
111
111
}
112
112
113
- loggerOptions . ExcludePaths ? . ToList ( ) . ForEach ( p => loggerConfig . Filter
113
+ loggerOptions . IgnoredPaths ? . ToList ( ) . ForEach ( p => loggerConfig . Filter
114
114
. ByExcluding (
115
115
Matching . WithProperty < string > (
116
116
"RequestPath" , n => n . EndsWith ( p ) ) ) ) ;
117
117
118
- loggerOptions . ExcludeProperties ? . ToList ( ) . ForEach ( p => loggerConfig . Filter
118
+ loggerOptions . IgnoredProperties ? . ToList ( ) . ForEach ( p => loggerConfig . Filter
119
119
. ByExcluding ( Matching . WithProperty ( p ) ) ) ;
120
120
}
121
121
0 commit comments