New format:
Log severity is logged with a single capital letter.
F - Fatal
E - Error
W - Warning
I - Info and Debug Level 0
D - All debug levels > 0
Component name is logged in upper-case padded with trailing spaces to fit within 8 characters.
Default log component is displayed with a hyphen.
--------------
It would be immensely useful if the mongo log would contain for each message the given log level. Currently it's almost impossible to do some automatic log querying (for example with logwatch) since you have to manually filter based on regular expressions what could possible be interesting to see. If a log level was saved with the log message, it would be possible to simply grep for 'warning' or 'error'
- is duplicated by
-
SERVER-7662 Improve error and warning reporting in logs
- Closed
-
SERVER-4108 server logfile lines should include an indication of which level of verbosity caused them to be logged
- Closed
- is related to
-
SERVER-15499 Confusion with error message "Assertion: 13110:HostAndPort: host is empty" when all data bearing nodes in shard are down
- Closed
-
SERVER-5092 Better named logging with tracing
- Closed
- related to
-
SERVER-14729 Add log component to non-debug messages
- Closed
-
SERVER-85138 guide for log messages and debug levels
- Closed
-
SERVER-16127 Display numeric debug log level in output
- Closed