Skip to content

Instantly share code, notes, and snippets.

@cmakh
Created November 13, 2018 01:59
Show Gist options
  • Save cmakh/64f4ae7d5308b0b4c95a1deb19030ca2 to your computer and use it in GitHub Desktop.
Save cmakh/64f4ae7d5308b0b4c95a1deb19030ca2 to your computer and use it in GitHub Desktop.
Hitch Logs Async
const Hitch = require('../src');
const host = require('./host.js');
const Logger = new Hitch.Logger(host);
async function test() {
console = await Logger.connectAsync(console);
console.log('This is a test');
}
test();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment