We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4d7e8d commit 862ae8aCopy full SHA for 862ae8a
SharpRepository.Logging/RepositoryLoggingAttribute.cs
@@ -8,12 +8,17 @@ namespace SharpRepository.Logging
8
public class RepositoryLoggingAttribute : RepositoryActionBaseAttribute
9
{
10
private readonly ILog _logger;
11
- private readonly LogLevel _logLevel = LogLevel.Debug;
+ private LogLevel _logLevel = LogLevel.Debug;
12
13
- public RepositoryLoggingAttribute(LogLevel logLevel = LogLevel.Debug)
+ public RepositoryLoggingAttribute()
14
15
_logger = LogManager.GetLogger("SharpRepository");
16
- _logLevel = logLevel;
+ }
17
+
18
+ public LogLevel LogLevel
19
+ {
20
+ get { return _logLevel; }
21
+ set { _logLevel = value; }
22
}
23
24
private void Log(string message)
0 commit comments