Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
donid opened this issue May 4, 2021 · 1 comment

Comments

@donid
Copy link

donid commented May 4, 2021

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?

@LiorBanai
Copy link
Member

your steps seems correct.
I'll check this t the weekend and update you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants