Skip to content

Commit 63095eb

Browse files
committed
Fix formatting of source files using a mix of tabs and spaces to just use spaces.
1 parent 8647a46 commit 63095eb

2 files changed

Lines changed: 48 additions & 48 deletions

File tree

Libraries/src/Amazon.Lambda.Logging.AspNetCore/LambdaILogger.cs

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,31 @@
33

44
namespace Microsoft.Extensions.Logging
55
{
6-
internal class LambdaILogger : ILogger
7-
{
8-
// Private fields
9-
private readonly string _categoryName;
10-
private readonly LambdaLoggerOptions _options;
6+
internal class LambdaILogger : ILogger
7+
{
8+
// Private fields
9+
private readonly string _categoryName;
10+
private readonly LambdaLoggerOptions _options;
1111

1212

13-
internal IExternalScopeProvider ScopeProvider { get; set; }
13+
internal IExternalScopeProvider ScopeProvider { get; set; }
1414

15-
// Constructor
16-
public LambdaILogger(string categoryName, LambdaLoggerOptions options)
17-
{
18-
_categoryName = categoryName;
19-
_options = options;
20-
}
15+
// Constructor
16+
public LambdaILogger(string categoryName, LambdaLoggerOptions options)
17+
{
18+
_categoryName = categoryName;
19+
_options = options;
20+
}
2121

22-
// ILogger methods
23-
public IDisposable BeginScope<TState>(TState state) => ScopeProvider?.Push(state) ?? new NoOpDisposable();
22+
// ILogger methods
23+
public IDisposable BeginScope<TState>(TState state) => ScopeProvider?.Push(state) ?? new NoOpDisposable();
2424

25-
public bool IsEnabled(LogLevel logLevel)
26-
{
27-
return (
28-
_options.Filter == null ||
29-
_options.Filter(_categoryName, logLevel));
30-
}
25+
public bool IsEnabled(LogLevel logLevel)
26+
{
27+
return (
28+
_options.Filter == null ||
29+
_options.Filter(_categoryName, logLevel));
30+
}
3131

3232
/// <summary>
3333
/// The Log method called by the ILogger framework to log message to logger's target. In the Lambda case the formatted logging will be
@@ -108,33 +108,33 @@ private static Amazon.Lambda.Core.LogLevel ConvertLogLevel(LogLevel logLevel)
108108
}
109109
}
110110

111-
private void GetScopeInformation(List<string> logMessageComponents)
112-
{
113-
var scopeProvider = ScopeProvider;
111+
private void GetScopeInformation(List<string> logMessageComponents)
112+
{
113+
var scopeProvider = ScopeProvider;
114114

115-
if (_options.IncludeScopes && scopeProvider != null)
116-
{
117-
var initialCount = logMessageComponents.Count;
115+
if (_options.IncludeScopes && scopeProvider != null)
116+
{
117+
var initialCount = logMessageComponents.Count;
118118

119-
scopeProvider.ForEachScope((scope, list) =>
120-
{
121-
list.Add(scope.ToString());
122-
}, (logMessageComponents));
119+
scopeProvider.ForEachScope((scope, list) =>
120+
{
121+
list.Add(scope.ToString());
122+
}, (logMessageComponents));
123123

124-
if (logMessageComponents.Count > initialCount)
125-
{
126-
logMessageComponents.Add("=>");
127-
}
128-
}
129-
}
124+
if (logMessageComponents.Count > initialCount)
125+
{
126+
logMessageComponents.Add("=>");
127+
}
128+
}
129+
}
130130

131-
// Private classes
132-
private class NoOpDisposable : IDisposable
133-
{
134-
public void Dispose()
135-
{
136-
}
137-
}
131+
// Private classes
132+
private class NoOpDisposable : IDisposable
133+
{
134+
public void Dispose()
135+
{
136+
}
137+
}
138138

139-
}
139+
}
140140
}

Libraries/src/Amazon.Lambda.Logging.AspNetCore/LambdaLoggerOptions.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Microsoft.Extensions.Configuration;
1+
using Microsoft.Extensions.Configuration;
22
using System;
33
using System.Collections.Generic;
44
using System.Linq;
@@ -18,8 +18,8 @@ public class LambdaLoggerOptions
1818
private const string INCLUDE_CATEGORY_KEY = "IncludeCategory";
1919
private const string INCLUDE_NEWLINE_KEY = "IncludeNewline";
2020
private const string INCLUDE_EXCEPTION_KEY = "IncludeException";
21-
private const string INCLUDE_EVENT_ID_KEY = "IncludeEventId";
22-
private const string INCLUDE_SCOPES_KEY = "IncludeScopes";
21+
private const string INCLUDE_EVENT_ID_KEY = "IncludeEventId";
22+
private const string INCLUDE_SCOPES_KEY = "IncludeScopes";
2323
private const string LOG_LEVEL_KEY = "LogLevel";
2424
private const string DEFAULT_CATEGORY = "Default";
2525

@@ -60,7 +60,7 @@ public class LambdaLoggerOptions
6060
/// </summary>
6161
public bool IncludeScopes { get; set; }
6262

63-
/// <summary>
63+
/// <summary>
6464
/// Function used to filter events based on the log level.
6565
/// Default value is null and will instruct logger to log everything.
6666
/// </summary>

0 commit comments

Comments
 (0)