Analogy-LogViewer / Analogy.LogViewer.gRPC

gRPC data provider for Analogy Log Viewer
MIT License
4 stars 2 forks source link

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

Open donid opened 3 years ago

donid commented 3 years ago

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 commented 3 years ago

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