1.0.0 • Published 2 years ago

@kerrody/logfile-logger v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Simple logging tool to log to a .txt file or the console.

Usage

const log = require('logfile-logger')

Logging to console:

log.console(<message>)

Logging to logfile:

simple (this logs to a file called logs.txt in utf8 encoding):

log.file(<message>)

advanced (logfile name and encoding are optional)

log.file(<mesasge>, <logfile name>.txt, <encoding>)

note: encoding can be, ascii, utf8 or base64