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
Currently, regardless of the formatting done by the specific logger implementation, log messages from worker are always prefixed with " From worker X: ". Log messages from the main process are not prefixed.
I can see why one would like such a prefix by default. I'd argue that the default prefix should also indicate the thread, and shouldn't be this loud, but that's a separate issue.
But it would be "very nice indeed" if there was a way to disable this default prefix. From a quick examination of the code, the prefix is added at a very low level code and there is no way to disable it.
Ideally the default prefix would be just one part of the general default logger formatting, allowing custom loggers to provide their own format.
For example, I have created my own logger which formats messages to always indicates which process (and thread!) generated the log message, in a more compact form, for uniform post-processing. I find it is also easier on the eyes for manual log browsing.
However I still need to post-process the log files to remove the very loud and redundant " From worker X: " prefix, which is inconvenient to the users.
The text was updated successfully, but these errors were encountered:
Currently, regardless of the formatting done by the specific logger implementation, log messages from worker are always prefixed with
" From worker X: "
. Log messages from the main process are not prefixed.I can see why one would like such a prefix by default. I'd argue that the default prefix should also indicate the thread, and shouldn't be this loud, but that's a separate issue.
But it would be "very nice indeed" if there was a way to disable this default prefix. From a quick examination of the code, the prefix is added at a very low level code and there is no way to disable it.
Ideally the default prefix would be just one part of the general default logger formatting, allowing custom loggers to provide their own format.
For example, I have created my own logger which formats messages to always indicates which process (and thread!) generated the log message, in a more compact form, for uniform post-processing. I find it is also easier on the eyes for manual log browsing.
However I still need to post-process the log files to remove the very loud and redundant
" From worker X: "
prefix, which is inconvenient to the users.The text was updated successfully, but these errors were encountered: