You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import {Logger, LoggerFactory} from 'lines-logger';
let factory: LoggerFactory = new LoggerFactory();
let logger: Logger = factory.getLogger('tag');
logger.log('Hello world')(); // pay attention to () in the end. `logger.log` returns a function that should be called, thus `console.log` is called from YOUR location instead of the library.
logger.debug('My array is {}, object is {}', [1,2,3], {1:1, 2:2})();
in Console output, there no time dispaly before tag name.
The text was updated successfully, but these errors were encountered:
Yes I also thought about this feature. But most browsers have this feature in the settings window, which make it far more convenient. Timestamps really eat space. But you can disable/enable it in the settings winwdow. E.g. chrome's one:
make demo as README instructions:
in Console output, there no time dispaly before tag name.
The text was updated successfully, but these errors were encountered: