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>
<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>

View file

@ -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.

View file

@ -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",