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 Compatible and additional computed target framework versions.|
|.NET||net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed.|
|.NET Core||netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed.|
|.NET Standard||netstandard2.0 is compatible. netstandard2.1 was computed.|
|.NET Framework||net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed.|
|MonoAndroid||monoandroid was computed.|
|MonoMac||monomac was computed.|
|MonoTouch||monotouch was computed.|
|Tizen||tizen40 was computed. tizen60 was computed.|
|Xamarin.iOS||xamarinios was computed.|
|Xamarin.Mac||xamarinmac was computed.|
|Xamarin.TVOS||xamarintvos was computed.|
|Xamarin.WatchOS||xamarinwatchos was computed.|
- MongoDB.Bson (>= 2.17.0)
- MongoDB.Driver (>= 2.17.0)
- MongoDB.Driver.Core (>= 2.17.0)
- System.Configuration.ConfigurationManager (>= 6.0.0)
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.