-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #92 from nblumhardt/fix-91
Fix #91 - wrong parameter name on surrogate WriteTo.Logger configuration method
- Loading branch information
Showing
5 changed files
with
30 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/Serilog.Settings.Configuration/Settings/Configuration/ConfigurationValueSyntax.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System.Text.RegularExpressions; | ||
|
||
namespace Serilog.Settings.Configuration | ||
{ | ||
static class ConfigurationValueSyntax | ||
{ | ||
const string LevelSwitchNameRegex = @"^\$[A-Za-z]+[A-Za-z0-9]*$"; | ||
|
||
public static bool IsValidSwitchName(string input) | ||
{ | ||
return Regex.IsMatch(input, LevelSwitchNameRegex); | ||
} | ||
} | ||
} |