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
It seems that as more and more loggers are being added, current scheme (of single logger with multiple options) becoming less and less manageable and more and more confusing.
Instead, I propose to introduce following four loggers:
ProstLogger - basic version of the logger, without any additional transformations. (Name is chosen slightly confusing, so people are less inclined to use it)
SquashLogger - improved version of ProstLogger, which squashes multilines messages to a single line
MarkdownLogger - markdown version of ProstLogger.
JsonLogger - logger, which saves all data in json lines.
This way, we will really get collection of loggers (and package name will be more meaningful) and also it will be easier to setup config options.
As a possible generous gesture, all loggers can accept all keywords, just useless keywords will go undocumented.
The text was updated successfully, but these errors were encountered:
After some consideration, I decided to go with 3 Loggers only
MiniLogger (this is a combination of SquashLogger and ProstLogger from the proposal). There are two motivations behind this decision. First of all, I do not want to break things too much. Secondly, this squash thing can be applied to JsonLogger and MarkdownLogger, so there is no need to distinguish them.
MarkdownLogger - which should probably be upgraded to support HTML tags to some extent
JsonLogger
They all should share same arguments, but default settings can be different.
It seems that as more and more loggers are being added, current scheme (of single logger with multiple options) becoming less and less manageable and more and more confusing.
Instead, I propose to introduce following four loggers:
ProstLogger
- basic version of the logger, without any additional transformations. (Name is chosen slightly confusing, so people are less inclined to use it)SquashLogger
- improved version ofProstLogger
, which squashes multilines messages to a single lineMarkdownLogger
- markdown version ofProstLogger
.JsonLogger
- logger, which saves all data in json lines.This way, we will really get collection of loggers (and package name will be more meaningful) and also it will be easier to setup config options.
As a possible generous gesture, all loggers can accept all keywords, just useless keywords will go undocumented.
The text was updated successfully, but these errors were encountered: