Skip to content

Commit

Permalink
完成对接实现逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
lindexi committed Sep 18, 2024
1 parent bade356 commit 5a31c41
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/dotnetCampus.Logger/Bridges/BridgeLogger.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@ internal class BridgeLogger : ILogger
{
public bool IsEnabled(LogLevel logLevel)
{
throw new NotImplementedException();
return
#if NETCOREAPP3_0_OR_GREATER
ILoggerBridge
#else
LoggerBridgeLinker
#endif
.Bridge?.IsEnabled((int)logLevel) ?? false;
}

/// <inheritdoc />
Expand Down

0 comments on commit 5a31c41

Please sign in to comment.