Vostok.Logging.Hercules
0.1.14
Prefix Reserved
dotnet add package Vostok.Logging.Hercules --version 0.1.14
NuGet\Install-Package Vostok.Logging.Hercules -Version 0.1.14
<PackageReference Include="Vostok.Logging.Hercules" Version="0.1.14" />
<PackageVersion Include="Vostok.Logging.Hercules" Version="0.1.14" />
<PackageReference Include="Vostok.Logging.Hercules" />
paket add Vostok.Logging.Hercules --version 0.1.14
#r "nuget: Vostok.Logging.Hercules, 0.1.14"
#:package Vostok.Logging.Hercules@0.1.14
#addin nuget:?package=Vostok.Logging.Hercules&version=0.1.14
#tool nuget:?package=Vostok.Logging.Hercules&version=0.1.14
Vostok.Logging.Hercules
An implementation of Vostok ILog that send events to Hercules. Also provides mapping from Hercules events back to Log Events.
Build guide: https://github.com/vostok/devtools/blob/master/library-dev-conventions/how-to-build-a-library.md
User documentation: https://vostok.gitbook.io/logging/
Here's how LogEvent instances are mapped into Hercules events (according to schema):
Timestamp(mandatory) corresponds to:- Hercules event built-in timestamp —
UtcDateTimeofTimestamp. utcOffsettag — alongtag with offset from UTC expressed in 100-ns ticks.
- Hercules event built-in timestamp —
Level--->leveltag ofstringtype.MessageTemplate--->messageTemplatetag ofstringtype.RenderedMessage--->messagetag containing rendered text.Propertiesdictionary corresponds to a container with nameproperties. This container contains a tag for each pair. Keys are translated as-is, and the values are handled according to following conventions:- If the value is a primitive scalar or a vector of primitive scalars natively supported by Hercules (such as
int,long,guid,string, etc), it's mapped as-is. - Otherwise the value gets converted to
string: either stringified directly (if it properly overridesToString()) or serialized to JSON. No further container-like structure is allowed, all values end up being 'flat'.
- If the value is a primitive scalar or a vector of primitive scalars natively supported by Hercules (such as
Exceptionobject corresponds to a container with nameexceptionand following tags:- Exception runtime type (e.g.
System.NullReferenceException) --->typetag of typestring. - Exception message --->
messagetag of typestring. - Nested exceptions (e.g.
InnerExceptionandInnerExceptionsforAggregateException) --->innerExceptionstag of typeVectorwhich contains other exceptions in the same format. - Stacktrace of exception --->
stackFramestag of typeVector<StackFrame>.StackFrameis a container of following tags which describe a point of code which executed when the exception occured:function- a name of function (method).type- a type whenfunctionis declared.file- file name.line- line number.column- column number.
- Exception runtime type (e.g.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. 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 is compatible. 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
- Vostok.Hercules.Client.Abstractions (>= 0.1.13)
- Vostok.Logging.Abstractions (>= 1.0.33)
- Vostok.Logging.Formatting (>= 1.0.15)
-
net6.0
- Vostok.Hercules.Client.Abstractions (>= 0.1.13)
- Vostok.Logging.Abstractions (>= 1.0.33)
- Vostok.Logging.Formatting (>= 1.0.15)
-
net8.0
- Vostok.Hercules.Client.Abstractions (>= 0.1.13)
- Vostok.Logging.Abstractions (>= 1.0.33)
- Vostok.Logging.Formatting (>= 1.0.15)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Vostok.Logging.Hercules:
| Package | Downloads |
|---|---|
|
Vostok.Hosting
The entry point to create and launch Vostok-compatible services. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.14 | 58,645 | 12/13/2024 |
| 0.1.13 | 59,891 | 10/25/2024 |
| 0.1.12 | 72,950 | 10/31/2022 |
| 0.1.12-pre000033 | 248 | 10/31/2022 |
| 0.1.12-pre000027 | 1,371 | 9/14/2022 |
| 0.1.12-pre000026 | 924 | 7/28/2022 |
| 0.1.12-pre000025 | 570 | 6/23/2022 |
| 0.1.12-pre000022 | 332 | 3/2/2022 |
| 0.1.11 | 72,113 | 3/2/2022 |
| 0.1.11-pre000015 | 314 | 12/20/2021 |
| 0.1.11-pre000014 | 584 | 12/8/2021 |
| 0.1.10 | 58,874 | 12/8/2021 |
| 0.1.10-pre000012 | 333 | 12/6/2021 |
| 0.1.9 | 701 | 12/6/2021 |
| 0.1.9-pre000010 | 327 | 12/4/2021 |
| 0.1.9-pre000009 | 305 | 12/3/2021 |
| 0.1.9-pre000008 | 341 | 12/3/2021 |
| 0.1.9-pre000007 | 321 | 11/27/2021 |
| 0.1.9-pre000006 | 328 | 11/27/2021 |
| 0.1.9-pre000005 | 1,690 | 11/26/2021 |