Giter VIP home page Giter VIP logo

serilog-sinks-notepad's Issues

Finding a renamed notepad process

If I provide a copy of the Notepad.exe file with a different name (say MyNotepadMonitor.exe), I can provide a custom Func<Process> that searches for this process name in the call to LoggerConfiguration().WriteTo.Notepad().

But what if I don't use this, but rely entirely on the configuration in appsettings.json? Is it possible to provide a function there? Or would it be an option to add a parameter that specifies the name of the executable to use instead of Notepad.exe?

Add support for writing to new Notepad on Windows 11

I have experienced that the current implementation of finding the notepadEditorHandle on Winodows 11 with the RichEditD2DTP class does not find the actual editor handle.

But by enumerating the child windows from the process MainWindowHandle, I do find it.

I'll make a pull request for this issue with my changes.

Access error to Notepad window

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.