From 643bfa31c0dbb3d4ecb5c80c2474656ee8da7326 Mon Sep 17 00:00:00 2001 From: Guillaume Wuip Date: Tue, 13 Jan 2015 18:03:49 +0100 Subject: [PATCH] Example for default tags --- examples/run_with_config.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/run_with_config.js b/examples/run_with_config.js index 429f49e..75cd8b4 100644 --- a/examples/run_with_config.js +++ b/examples/run_with_config.js @@ -29,7 +29,11 @@ myConfigConsole.addLogger('fun', ['rainbow', 'inverse', 'black']); myConfigConsole.fun('Some rainbow in background !'); -myConfigConsole.addLogger('log'); +myConfigConsole.addLogger('log', null, + { + defaultTags : [{msg : 'Default tag', colors: 'cyan'}] + } +); myConfigConsole.tag('A tag', 123).log('custom tags'); myConfigConsole.time().log('custom time');