F
F
floppa3222019-07-24 22:04:39
Journaling
floppa322, 2019-07-24 22:04:39

Why do some logging modules accept duplication of lower error levels?

For example, there is a handler that writes log messages with emerg level and below to emerg-log.txt. There is also a handler that writes log messages of the error level and below to another error-log.txt file. It turns out that if an emerg-level error occurs, emerg-log.txt and error-log.txt will be the same, duplicate data will appear.
Why, for example, winston and, probably, many other modules for logging use this approach with "top-down duplication", if you can call it that?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question