@overbounce/logger
v1.0.2
Published
Opinionated, zero dependency logger module to file and console.
Readme
Logger
Opinionated, zero dependency logger module to file and console.
How it works
By default the logger will output all logs in a filename in a folder:
/var/log/{appName}/logsif not on Windows ;os.tmpdir()/{appName}/logson Windows.
The filename parameters is the filename of the log files. It can contains some special markup:
{DATE}will be replaced by the current date in theYYYY-MM-DDformat.{APPNAME}will be replaced by the app name.
By default, the filename is {APPNAME}-{DATE}.log.
Format
Logger will output things in the following format:
[YYYY-MM-DD HH:mm:ss] LEVEL | [category] message
