logchan/distribute¶
-
module
logchan.
distribute
¶ Distribute Logchan.
Duplicates message to a set of logchans.
Examples:
import ConsoleLogchan from 'cashshuffle/logchan/console' import FileLogchan from 'cashshuffle/logchan/file' import DistributeLogchan from 'cashshuffle/logchan/distribute' const logConsole = new ConsoleLogchan() const logFile = new FileLogchan('/home/user/.cashshuffle/log') const log = new DistributeLogchan([ logConsole, logFile ]) async function run () { await log.send('Starting run') } run()
-
class
logchan.distribute.
DistributeLogchan
(recipients)¶ Arguments: - recipients (Iterable.<Logchan>) – Logchan instances to deliver to.
-
class