Skip to content

Question: trying to do realtime logging from a console application with serilog #114

Open
@donid

Description

@donid

Hi, I have a console application that uses serilog and I am trying to configure it, so that I can see log-messages in Analogy.exe in realtime. It seems that I have to use the nuget Analogy.LogViewer.Serilog.Sinks which doesn't support .netFX (e.g. 4.7.2) so I moved to a .netCore test-project (seems to be supported only for '-windows') and added this code:
using var log = new LoggerConfiguration() .WriteTo.AnalogyLogServerSink() .WriteTo.Console() .CreateLogger();
When I start Analogy.exe and click 'Connect to gRPC Log Server' a log-window opens, but no messages or log-entries appear.
When I first start Analogy.LogServer.exe and then start Analogy.exe and click 'Connect to gRPC Log Server' a log-window opens and a message appears:
Error Opening log. Please make sure you are running as Administrator. Error:Requested registry access is not allowed.
Even when I start Analogy.exe as admin - I have also tried to change the port for the server and the viewer to 56000 - that made no difference.
Am I doing something wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions