serilog-contrib / serilog-sinks-notepad

A Serilog sink that writes log events to Notepad as text or JSON
Apache License 2.0
62 stars 8 forks source link

Access error to Notepad window #24

Closed bstordrup closed 2 years ago

bstordrup commented 2 years ago

I'm using the SeriLog.Sinks.Notepad latest version, but I cannot get it to work.

Usign the SelfLog feature to Console, I get this error:

2022-03-14T08:47:14.7322195Z Unable to access a Notepad Editor on process Notepad (28836)

So it does find the process, but it is not able to access it.

bash commented 2 years ago

I get the same error. I'm using Windows 11 with the redesigned Notepad.

bstordrup commented 2 years ago

Nice, and I see you have a pull request for it. Hope it will get settled soon.

augustoproiete commented 2 years ago

That's great! Thank you gents!

@bstordrup Do you confirm that you're also using Windows 11 when you see that error? Wondering if @bash's PR fixes your case too, of if we have another issue to investigate

bstordrup commented 2 years ago

@augustoproiete, yes, I'm using Windows 11 as well, so @bash's PR will fix my issue. But as soon as a new package is available, I will test it.

If you do not have a planned release coming up soon, I will pull the changes to my fork and create a local preview package myself.

augustoproiete commented 2 years ago

:tada: The changes implemented in response to this issue shipped with Serilog.Sinks.Notepad v2.1.0

The release is available on: