Skip to content

Latest commit

 

History

History
54 lines (32 loc) · 2.08 KB

README.md

File metadata and controls

54 lines (32 loc) · 2.08 KB

PoShLog.Sinks.Notepad

psgallery PowerShell Gallery psgallery Discord

PoShLog.Sinks.Notepad is extension module for PoShLog logging module. Contains sink that writes log messages to most recently opened Notepad application.

Getting started

If you are familiar with PowerShell, skip to Installation section. For more detailed installation instructions check out Getting started wiki.

Installation

To install PoShLog.Sinks.Notepad, run following snippet from powershell:

Install-Module -Name PoShLog.Sinks.Notepad

Usage

Import-Module PoShLog
Import-Module PoShLog.Sinks.Notepad

New-Logger |
    Add-SinkNotepad |
    Start-Logger

Write-InfoLog 'This message should pop up in Notepad!'

# Don't forget to close the logger
Close-Logger

Documentation

These examples are just to get you started fast. For more detailed documentation please check wiki.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details.

Credits