logfile-logger
v1.0.8
Published
A simple package that allows you to log from your program to a log file.
Downloads
17
Maintainers
Readme
Simple logging tool to log to a .txt
file or the console.
Usage
const log = require('@kerrody/logfile-logger')
Logging to console:
log.console(<message>)
Logging to logfile:
log.file(<mesasge>, <logfile_name.txt>, <encoding>)
Logging to console and logfile:
log.everywhere(<mesasge>, <logfile_name.txt>, <encoding>)
Note:
encoding
can be,ascii
,utf8
orbase64
logfile_name
andencoding
are optional, if not parsedlogs.txt
andutf8
will be used by default