Skip to content

daramkun/Hazelnut.Log

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hazelnut.Log

Hazelnut.Log is Logging framework.

$ # Using Nuget Package Manager Console
$ nuget Install-Package Hazelnut.Log
$ # Using .NET CLI
$ dotnet add package Hazelnut.Log
<!-- Using csproj -->
<PackageReference Include="Hazelnut.Log" Version="1.0.0" />

Development Goals

  1. .NET 6.0 Trimming compatible
  2. .NET 7.0 AOT compatible
  3. Unity Engine compatible
  4. Sync/Async Logging

Required

.NET 7.0 SDK + Workloads (macos, ios, tvos, maccatalyst, android)

$ dotnet workload install macos ios tvos android maccatalyst

Using libraries

Loggable

  • Debug Output
  • Console (Standard Output, Standard Error)
  • Text File
  • Android Logcat
  • Apple OSLog (macOS, iOS, tvOS)
  • Unity Engine Logger (.NETStandard 2.1 only)

Message Format and File Name variables

Variable Details
Logger Logger Name
BaseDir Executable Directory
Date Local Time-zone based Current Date and Time
UtcDate UTC based Current Date and Time
WorkingDir Current Working Directory
AppData Application Data Directory (Windows)
LocalAppData Local Application Data Directory (Windows)
Documents Documents Directory
ThreadId Current Managed Thread Id
ThreadName Current Managed Thread Name
ProcessId Current Process Id
ProcessName Current Process Name

About

.NET Logging Library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages