Customized log #2757
Closed
shinianyue
started this conversation in
Ideas
Customized log
#2757
Replies: 2 comments 2 replies
-
What do you want to ask? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Thanks for the fast response. Actually I have the same problem as #2703 ,And I just found my answer there and in #1794 . |
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
-
Hi,guys 🖐️ :)!
I tried a little on customized log message.
(In a rather stupid way actually)
I defined a new level "CUSTOMIZED" in the enum.
It's now the highest level (7,higher than "off"level).
Basic functions are almost directly copied from other levels like:
spdlog::customized("message");
And I use a global variable
bool customized_should_log_tag
to tell whether it should be logged or not. This variable will be checked inshould_log()
.As a new learner, your advice will help me a lot.
BTW, I still take it such a tough mission(final assignment)for a freshman (even not CS major) to give this wonderful program some improvements.
Beta Was this translation helpful? Give feedback.
All reactions