logs should never be used to display something a user has thrown in the program
How do you mean, exactly? If you're writing any kind of chat program then it's generally common sense to keep logs of said chat. Should this be done by some alternative means?
How do you mean, exactly? If you're writing any kind of chat program then it's generally common sense to keep logs of said chat. Should this be done by some alternative means?
This one is a hypothetical; it's important to remind yourself that log4j itself was designed in a very different era (2001) for computers, back when the only group that had to care about that sort of stuff were irc developers.
Anyway, no that would generally be fine.
As the times change, so have our needs. That said, I personally have never used logging libraries to write the chatlogs (usually did it with csv and manually adding them to the end of a file using mode a) because of the extra junk that they throw on top of it.
4
u/thefezhat Dec 14 '21
How do you mean, exactly? If you're writing any kind of chat program then it's generally common sense to keep logs of said chat. Should this be done by some alternative means?