Hi,
I find it annoying that if my context prefix is foo.boo,
and I make a log call like this:
logCtx.debug('Got user from db');
Then the log message would be:
foo.boo.Got user from db
It looks like the 'Got' is part of the prefix.
So I guess the intended use is that every log would include a first name argument.
like logCtx.debug('something', 'Got user from db');
And then the log would look like:
foo.boo.something Got user from db
But what if I don't have any something to say. So it forces me to pass an empty string as the first argument of every log.
Am I missing something here?
Or you think it is a good idea to make this trailing dot optional?
Hi,
I find it annoying that if my context prefix is
foo.boo,and I make a log call like this:
logCtx.debug('Got user from db');Then the log message would be:
foo.boo.Got user from dbIt looks like the 'Got' is part of the prefix.
So I guess the intended use is that every log would include a first
nameargument.like
logCtx.debug('something', 'Got user from db');And then the log would look like:
foo.boo.something Got user from dbBut what if I don't have any
somethingto say. So it forces me to pass an empty string as the first argument of every log.Am I missing something here?
Or you think it is a good idea to make this trailing dot optional?