1.1.0 • Published 3 years ago
aminologer v1.1.0
Simple AminoLoger
Constructor options
Path - place where you save log files (accepts String)
Console - an local declaration for console (accepts object, Object prototype)
Operations
Log
<amino>.log(message)Error
<amino>.error(message)Info
<amino>.info(message)Success
<amino>.success(message)Warning
<amino>.warn(message)Example
const Amino = require(`aminologer`)
const logs = new Amino('./logs', console)
logs.warn('Leak of memory detected.')