Skip to content

Commit fcb180c

Browse files
committed
remove unused
1 parent bda7ca3 commit fcb180c

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

docs/core/logging.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ When the Advanced Logging Controls feature is enabled, we are unable to increase
108108
We prioritise log level settings in this order:
109109

110110
1. AWS_LAMBDA_LOG_LEVEL environment variable
111-
2. Setting the log level in code using logger.setLevel()
111+
2. Setting the log level in code using `[Logging(LogLevel = )]`
112112
3. POWERTOOLS_LOG_LEVEL environment variable
113113

114114
In the event you have set POWERTOOLS_LOG_LEVEL to a level lower than the ACL setting, Powertools for AWS Lambda will output a warning log message informing you that your messages will be discarded by Lambda.

libraries/src/AWS.Lambda.Powertools.Logging/Internal/PowertoolsLogger.cs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,6 @@ internal sealed class PowertoolsLogger : ILogger
5050
/// The system wrapper
5151
/// </summary>
5252
private readonly ISystemWrapper _systemWrapper;
53-
54-
/// <summary>
55-
/// The current configuration
56-
/// </summary>
57-
private LoggerConfiguration _currentConfig;
5853

5954
/// <summary>
6055
/// The JsonSerializer options
@@ -92,7 +87,7 @@ public PowertoolsLogger(
9287
}
9388
}
9489

95-
private LoggerConfiguration CurrentConfig { get; }
90+
private LoggerConfiguration CurrentConfig { get; set; }
9691

9792
/// <summary>
9893
/// Sets the minimum level.
@@ -375,7 +370,7 @@ private object GetFormattedLogEntry(LogLevel logLevel, DateTime timestamp, objec
375370
/// </summary>
376371
internal void ClearConfig()
377372
{
378-
_currentConfig = null;
373+
CurrentConfig = null;
379374
}
380375

381376
/// <summary>

0 commit comments

Comments
 (0)