Skip to content

Commit

Permalink
SkipLoggerRule
Browse files Browse the repository at this point in the history
  • Loading branch information
Noggog committed Aug 7, 2022
1 parent 5e6df7d commit 80d3061
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Noggog.Autofac/Validation/Rules/SkipLoggerRule.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
namespace Noggog.Autofac.Validation.Rules;

public class SkipLoggerRule : IValidationRule
{
// To Do
// Find a more robust way to validate logging systems
public bool IsAllowed(Type type)
{
if (type.Name.StartsWith("ILogger")) return true;
return false;
}
}

0 comments on commit 80d3061

Please sign in to comment.