Dubacik22.Logger
1.0.0
See the version list below for details.
dotnet add package Dubacik22.Logger --version 1.0.0
NuGet\Install-Package Dubacik22.Logger -Version 1.0.0
<PackageReference Include="Dubacik22.Logger" Version="1.0.0" />
paket add Dubacik22.Logger --version 1.0.0
#r "nuget: Dubacik22.Logger, 1.0.0"
// Install Dubacik22.Logger as a Cake Addin #addin nuget:?package=Dubacik22.Logger&version=1.0.0 // Install Dubacik22.Logger as a Cake Tool #tool nuget:?package=Dubacik22.Logger&version=1.0.0
library for creating and writing log messages
The Logger class is static for simplicity. The logger distinguishes between multiple layers of logs: Trace Debug Info Result Fatal
It is possible to create any number of target files for any layer. Logger writes messages to files according to:
file: Trace Debug Info Result Fatal message: Trace + Debug + + Info + + + Result + + + + Fatal + + + + +
at the beginning it is necessary to initialize some files (it is possible to initialize any number of any files): Logger.CreateTraceFile(string path, string name); Logger.CreateDebugFile(string path, string name); Logger.CreateInfoFile(string path, string name); Logger.CreateResultFile(string path, string name); Logger.CreateFatalFile(string path, string name);
in case we want to automatically add to the end of logging messages \ n: Logger.AddCrLf (true);
in case we want the logger to add a timestamp to the beginning of the log: Logger.ShowTime (true);
log entry itself: Logger.Trace ("trace message"); ... Logger.Fatal ("error message");
the log looks like this:
5/5/2016 14: 42: 15.481016 T: trace message 5/5/2016 14: 42: 16.001765 FATAL: error message
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Dubacik22.Logger:
Package | Downloads |
---|---|
Dubacik22.EnginKalkulatorowy
Library that takes care of the continuity when calling methods that depend on the properties that changes in runtime |
|
Dubacik22.Fielder
Library that contains classes that can be easily serialisable |
|
EK
Library that takes care of the continuity when calling methods that depend on the properties that changes in runtime |
GitHub repositories
This package is not used by any popular GitHub repositories.
1.0.0