logfile-logger
v1.0.8
Published
A simple package that allows you to log from your program to a log file.
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:
encodingcan be,ascii,utf8orbase64logfile_nameandencodingare optional, if not parsedlogs.txtandutf8will be used by default
