mirror of
https://github.com/Ellpeck/ExtremelySimpleLogger.git
synced 2024-11-22 01:53:29 +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>
|
<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>
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Reference in a new issue