eLogger 1.0.11
dotnet add package eLogger --version 1.0.11
NuGet\Install-Package eLogger -Version 1.0.11
<PackageReference Include="eLogger" Version="1.0.11" />
paket add eLogger --version 1.0.11
#r "nuget: eLogger, 1.0.11"
// Install eLogger as a Cake Addin
#addin nuget:?package=eLogger&version=1.0.11
// Install eLogger as a Cake Tool
#tool nuget:?package=eLogger&version=1.0.11
Logging appliaction eLog
eLog is a logging platform for .NET. eLog supports traditional logging.
eLog is a flexible and free logging platform for .NET platform, including .NET standard. eLog makes it easy to write to several targets. (database, file)
The NuGet package is designed for external applications event logging, such as errors, information, warning, and some fatal exceptions.
For using the eLog logging NuGet package in an external application, need to be configurated in the app.config file. App.config should have been set up differently for different destinations.
The destination can be selected one of the values` Unknown, SqlDB, MongoDB, File.
Logging appliaction logs into the MongoDB.
- "eLog_dbConnection" - Connection string for MongoDB in this case, where destination is selected as "MongoDB".
- "eLog_destination" - Should be populated as 'MongoDB', it will log data into MongoDB database.
- "eLog_dbName" - Database name.
- "eLog_dbUserName" - The databse login UserName.
- "eLog_dbPassword" - The database login Password.
app.config example for MongoDB destination.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
</startup>
<connectionStrings>
<add name="eLog_dbConnection" connectionString="mongodb://localhost:27017" />
</connectionStrings>
<appSettings>
<add key="eLog_destination" value="MongoDB"/>
<add key="eLog_dbName" value="LogDB" />
<add key="eLog_dbUserName" value="" />
<add key="eLog_dbPassword" value="" />
</appSettings>
</configuration>
Logging appliaction logs into file in the FileSystem.
- "eLog_destination" - Should be populated as 'File', it will log data into FileSystem with predefined location.
- "eLog_fileDirectory" - The log files main directory.
- "eLog_fileFormat" - The file format. File format can be selected ` json, txt or xml.
- "eLog_fileNamePrefic" - The log file name prefix. The prefix will be used for define log file name. Example: /Some_defined_Prefix/_124587123454123.
app.config example with local file destination.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
</startup>
<appSettings>
<add key="eLog_destination" value="File"/>
<add key="eLog_fileDirectory" value="C:\Code\Archive\LogTestDirectory"/>
<add key="eLog_fileFormat" value="xml"/>
<add key="eLog_fileNamePrefic" value="Log"/>
</appSettings>
</configuration>
Edgar Tadevosyan (c) 2022
Product | Versions |
---|---|
.NET | net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows |
.NET Core | netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1 |
.NET Standard | netstandard2.0 netstandard2.1 |
.NET Framework | net461 net462 net463 net47 net471 net472 net48 net481 |
MonoAndroid | monoandroid |
MonoMac | monomac |
MonoTouch | monotouch |
Tizen | tizen40 tizen60 |
Xamarin.iOS | xamarinios |
Xamarin.Mac | xamarinmac |
Xamarin.TVOS | xamarintvos |
Xamarin.WatchOS | xamarinwatchos |
-
.NETStandard 2.0
- MongoDB.Bson (>= 2.17.0)
- MongoDB.Driver (>= 2.17.0)
- MongoDB.Driver.Core (>= 2.17.0)
- System.Configuration.ConfigurationManager (>= 6.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.