I need to write Logary target to store logs to the EventStore from .NET application.
I am not able to find documentation for this. I don't know if I understand it correctly.
"laptop" is where I get my logs from? "Logary.HelloWorld" is where I want to send them to? Is this correct? Instead of "Logary.HelloWorld" I should use the EventStore.Adapter and provide it somehow with the address of the EventStore and the name of the stream? "Hello world" and this is what I send as the event to the stream, i.e. the logs?
Any help, or an example of a target using Logary EventStore Adapter would be great.
use mre = new System.Threading.ManualResetEventSlim(false) use sub = Console.CancelKeyPress.Subscribe (fun _ -> mre.Set()) let logary = Config.create "Logary.ConsoleApp" "laptop" |> Config.target (LiterateConsole.create LiterateConsole.empty "console") |> Config.ilogger (ILogger.Console Debug) |> Config.build |> run let logger = logary.getLogger "Logary.HelloWorld" logger.info (eventX "Hello world") mre.Wait() 0
When I run the code above, I get:
System.TypeInitializationException: 'The type initializer for '.$Core' threw an exception.'
FileLoadException: Could not load file or assembly 'FParsec, Version=18.104.22.168, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
User contributions licensed under CC BY-SA 3.0