LogCore 1.0.1
dotnet add package LogCore --version 1.0.1
NuGet\Install-Package LogCore -Version 1.0.1
<PackageReference Include="LogCore" Version="1.0.1" />
<PackageVersion Include="LogCore" Version="1.0.1" />
<PackageReference Include="LogCore" />
paket add LogCore --version 1.0.1
#r "nuget: LogCore, 1.0.1"
#addin nuget:?package=LogCore&version=1.0.1
#tool nuget:?package=LogCore&version=1.0.1
LogCore
Basic expandable libary to centralize logging systems.
As a default the libary can log to Console and File.
setup
the base of the logging system is the LOGInstance to setup the system create an instance of this class. The Instance can act as an singleton to enable access throu the static class LOG or be used in instance mode(see [InstanceMode](#Instance Modes)). The LOGInstance requires also an IEnumerable of Logoutputs to use, IEnumerable is used to allow any array type as an input since internaly the modules will allways be stored in an List. The LogInstance is now ready to be used until the Dispose function is Called witch should be called to safely shutdown the logger. LOGInstance implements IDisposable so Using can be used to enshure the deserialisation.
Instance Modes
instance Mode
In this mode multiple loggers can be active at the same time as long as they dont access the sme resource like log Files. the only way to send a logmessage is throu the instance istelf. An inctanced Loger can run besides an Logger using the Singleton Mode.
Singleton Mode
As a helper this libary bings a static class LOG this can be used to log messages without a direct LOGInstance reference. however the static class must still be initialized, when a static log mehtod is invoked wihtout initialisation a NotInitialized exception is thrown. To intitialize the static LOG Class create an loginstance and set singleton mode to true in the constructor, as this functionality utilizes the singleton pattern only one loginstance can be active at the time in singleton mode, when attempting to create a second singleton a AlreadyInitialized Exception is thrown. when the LOGInstance ios disposed the singleton will be cleared aswell so a new instance can be setup.
custom Logoutput
To create an custom output create a class deriving from IlogOutput. The class needs to override the void Initialize(), void HandleMessage(LOGMessage message) and the void Dispose() function.
Multithreadding
This Log Libary can be used Multithreaded but only one thread can work on logmesages at a time so many logmessages from multiple threads can slowdown the process since the threads will wait a long time to get a hold of the Mutex.
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. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.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. |
-
.NETStandard 2.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.1 | 598 | 8/13/2019 |