Replies: 1 comment 1 reply
-
|
Thanks for your idea Not too many people have asked for this, so I'm probably going to leave it as it is for now, but I'll reconsider should more people as for this. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently you have to set the color on each
ray()call, which can get rather tedious when you have a larger number of calls:It would be useful to be able to set the default color to be used for log calls that don't explicitly define a color. This would make it easy to do things like setting a color at the start of a method and resetting the color at the end of the method. It would then be easy to identify the log lines triggered by that method (and everything that is called from within that method).
Something along the lines of
ray()->setDefaultColor()->red()(or any of the color methods). You could then do something likeray()->resetDefaultColor()to reset the default color.Here's a simple usage example:
I'd love to know your thoughts. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions