log-a2dev
v0.1.3
Published
logging to file.
Downloads
1
Readme
log-a2dev
logging to file.
usage
this sample save to log.txt. 2 line a and b.
var Log = require("log-a2dev")
var log = new Log("/path/to/log.txt")
log.append('a')
log.append('b')
methods
append (log, d = null, options = {})
d: Date
when it's set logging time change.
new log = new Log("/path/to/log.txt")
log.append('a')
log.append('b')
options
- dateFormat: string (default: 'YYYY-MM-DD HH:MM:SS')