logchan/file¶
-
module
logchan.
file
¶ File based implementation of Logchan.
Uses Node.js fs module to log to file.
Provide log file path to constructor.
Examples:
import FileLogchan from 'cashshuffle/logchan/file' const log = new Logchan('/home/user/.cashshuffle/log') async function run () { await log.send('Starting run') } run()
-
class
logchan.file.
FileLogchan
(filePath)¶ Arguments: - filePath (string) – Path to log file.
-
class