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" />
.NET 6.0
Trimming compatible.NET 7.0
AOT compatibleUnity Engine
compatible- Sync/Async Logging
.NET 7.0
SDK + Workloads (macos
, ios
, tvos
, maccatalyst
, android
)
$ dotnet workload install macos ios tvos android maccatalyst
Debug
Output- Console (
Standard Output
,Standard Error
) - Text File
Android
Logcat- Apple
OSLog
(macOS
,iOS
,tvOS
) Unity Engine
Logger (.NETStandard 2.1 only
)
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 |