Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

time prefix not display #5

Closed
navono opened this issue Apr 8, 2021 · 3 comments
Closed

time prefix not display #5

navono opened this issue Apr 8, 2021 · 3 comments

Comments

@navono
Copy link

navono commented Apr 8, 2021

make demo as README instructions:

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.

@navono
Copy link
Author

navono commented Apr 8, 2021

There no time in params in getSingleLoggerStype.

@akoidan
Copy link
Owner

akoidan commented Apr 8, 2021

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:

image

image

image

@navono
Copy link
Author

navono commented Apr 12, 2021

Yeah, you're right.
Just for note: console-log-timestamps-in-chrome for Chrome 68+.

@navono navono closed this as completed Apr 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants