made the default minimum level trace for everything

This commit is contained in:
Ellpeck 2020-08-19 04:49:22 +02:00
parent cd10c083bf
commit 67958a937f
3 changed files with 5 additions and 5 deletions

View file

@ -12,6 +12,6 @@
<PackageProjectUrl>https://github.com/Ellpeck/ExtremelySimpleLogger</PackageProjectUrl> <PackageProjectUrl>https://github.com/Ellpeck/ExtremelySimpleLogger</PackageProjectUrl>
<RepositoryUrl>https://github.com/Ellpeck/ExtremelySimpleLogger</RepositoryUrl> <RepositoryUrl>https://github.com/Ellpeck/ExtremelySimpleLogger</RepositoryUrl>
<PackageLicenseUrl>https://github.com/Ellpeck/ExtremelySimpleLogger/blob/master/LICENSE</PackageLicenseUrl> <PackageLicenseUrl>https://github.com/Ellpeck/ExtremelySimpleLogger/blob/master/LICENSE</PackageLicenseUrl>
<VersionPrefix>1.2.0</VersionPrefix> <VersionPrefix>1.2.1</VersionPrefix>
</PropertyGroup> </PropertyGroup>
</Project> </Project>

View file

@ -10,7 +10,7 @@ namespace ExtremelySimpleLogger {
/// <summary> /// <summary>
/// The minimum level that a log message needs to have for it to be processed by this sink. /// The minimum level that a log message needs to have for it to be processed by this sink.
/// </summary> /// </summary>
public LogLevel MinimumLevel { get; set; } = LogLevel.Info; public LogLevel MinimumLevel { get; set; } = LogLevel.Trace;
/// <summary> /// <summary>
/// The <see cref="LogFormatter"/> with which this message should be formatted. /// The <see cref="LogFormatter"/> with which this message should be formatted.
/// By default, <see cref="FormatDefault"/> is used. /// By default, <see cref="FormatDefault"/> is used.

View file

@ -10,9 +10,9 @@ namespace Sample {
// When we have multiple loggers that output to the same file, // When we have multiple loggers that output to the same file,
// we can just reuse our sinks // we can just reuse our sinks
var sinks = new List<Sink> { 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),
new FileSink("Log.txt", true) {MinimumLevel = LogLevel.Trace}, // We only want to log messages with a higher importance in the console
new ConsoleSink() new ConsoleSink {MinimumLevel = LogLevel.Info}
}; };
var logger = new Logger { var logger = new Logger {
Name = "Example Logger", Name = "Example Logger",