tslog
tslog copied to clipboard
Feature Request: Conditional Logging options
Description / Use Case for a Feature
I often times want only to log something if an action fails. It would make my code a lot cleaner if i could do something like
logger.conditional.info(true, "log msg")
or info.conditional
I could create a function that does this but it would be nice to be built into the logger!