Another Logging Library
Easy to use logging
Install
npm i --save agathias
Usage
- Simple Case
const logger = loggerlogger
- Simple Case w/ config
const logger = const config = appName: 'Simple App' logger
- File Case
const logger = const config = file: true fileName: 'my-app-file-case.log' logDir: '/tmp' // Path must have an absolute value, you can use __dirname logger
- Middleware Case (ExpressJS)
const http = const express = const logger = const app = logger
- Group logs by 'children'
const logger = logger
Features
- Seamless integration with log rotate
- Optional express logging