1.0.8 • Published 4 years ago
logfile-logger v1.0.8
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