1.0.4 • Published 9 months ago
@0e9b061f/logmailer v1.0.4
:wood: logmailer v1.0.4
logmailer is a simple, configurable tool for logging to email. It can be used from the command line or as a Node.js library.
Installation
npm install @0e9b061f/logmailer
You may want to install globally if you intent to use logmailer from the command line:
npm install -g @0e9b061f/logmailer
CLI Usage
logmailer provides a logmailer
executable. Run logmailer -h
to see usage information:
logmailer [-c CONF] [-e ERR] [-s SRC] [-a PATH] SUBJECT [DOCUMENT ...]
--conf / -c CONF
Path to the config file
--error / -e ERR
Integere error level
--source / -s SRC
Source of this log (the program that generated it)
--attach / -a PATH
Attach the file at PATH to the email
--document / -d PATH
Read the file at path and embed its contents in the email body
SUBJECT
Email subject line
DOCUMENT
Log contents. Each document given will be embeddded separately in the email body
logmailer --help | -h
Print this usage information and exit