fix(core): update

This commit is contained in:
2020-06-05 01:53:09 +00:00
parent fc13271878
commit 58358dd479
4 changed files with 3695 additions and 586 deletions

View File

@ -9,7 +9,12 @@ tap.test('should produce instance of Smartlog', async () => {
});
tap.test('should enable console logging', async () => {
defaultLogger.enableConsole();
defaultLogger.enableConsole({
captureAll: true
});
console.log('this is a normal log that should be captured');
console.log(new Error('hi there'));
defaultLogger.log('info', 'this should only be printed once');
});
tap.test('should be able to log things', async () => {