Skip to content

Commit 862ae8a

Browse files
author
Jeff Treuting
committed
Removed logging level from constructor
1 parent f4d7e8d commit 862ae8a

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

SharpRepository.Logging/RepositoryLoggingAttribute.cs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,17 @@ namespace SharpRepository.Logging
88
public class RepositoryLoggingAttribute : RepositoryActionBaseAttribute
99
{
1010
private readonly ILog _logger;
11-
private readonly LogLevel _logLevel = LogLevel.Debug;
11+
private LogLevel _logLevel = LogLevel.Debug;
1212

13-
public RepositoryLoggingAttribute(LogLevel logLevel = LogLevel.Debug)
13+
public RepositoryLoggingAttribute()
1414
{
1515
_logger = LogManager.GetLogger("SharpRepository");
16-
_logLevel = logLevel;
16+
}
17+
18+
public LogLevel LogLevel
19+
{
20+
get { return _logLevel; }
21+
set { _logLevel = value; }
1722
}
1823

1924
private void Log(string message)

0 commit comments

Comments
 (0)