mirror of
https://github.com/Ellpeck/ExtremelySimpleLogger.git
synced 2024-12-22 13:19:24 +01:00
made the default minimum level trace for everything
This commit is contained in:
parent
cd10c083bf
commit
67958a937f
3 changed files with 5 additions and 5 deletions
|
@ -12,6 +12,6 @@
|
|||
<PackageProjectUrl>https://github.com/Ellpeck/ExtremelySimpleLogger</PackageProjectUrl>
|
||||
<RepositoryUrl>https://github.com/Ellpeck/ExtremelySimpleLogger</RepositoryUrl>
|
||||
<PackageLicenseUrl>https://github.com/Ellpeck/ExtremelySimpleLogger/blob/master/LICENSE</PackageLicenseUrl>
|
||||
<VersionPrefix>1.2.0</VersionPrefix>
|
||||
<VersionPrefix>1.2.1</VersionPrefix>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
|
|
|
@ -10,7 +10,7 @@ namespace ExtremelySimpleLogger {
|
|||
/// <summary>
|
||||
/// The minimum level that a log message needs to have for it to be processed by this sink.
|
||||
/// </summary>
|
||||
public LogLevel MinimumLevel { get; set; } = LogLevel.Info;
|
||||
public LogLevel MinimumLevel { get; set; } = LogLevel.Trace;
|
||||
/// <summary>
|
||||
/// The <see cref="LogFormatter"/> with which this message should be formatted.
|
||||
/// By default, <see cref="FormatDefault"/> is used.
|
||||
|
|
|
@ -10,9 +10,9 @@ namespace Sample {
|
|||
// When we have multiple loggers that output to the same file,
|
||||
// we can just reuse our sinks
|
||||
var sinks = new List<Sink> {
|
||||
// We want to log messages of every log level, so we set the minimum level to Trace
|
||||
new FileSink("Log.txt", true) {MinimumLevel = LogLevel.Trace},
|
||||
new ConsoleSink()
|
||||
new FileSink("Log.txt", true),
|
||||
// We only want to log messages with a higher importance in the console
|
||||
new ConsoleSink {MinimumLevel = LogLevel.Info}
|
||||
};
|
||||
var logger = new Logger {
|
||||
Name = "Example Logger",
|
||||
|
|
Loading…
Reference in a new issue