Replies: 2 comments 14 replies
-
We are working on releasing |
Beta Was this translation helpful? Give feedback.
14 replies
-
I guess this can be closed now as the feature is now available. Thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
i'm trying to see a possible migration path of Glog to abseil-cpps logging-module and are struggling a bit in regards to log-levels.
Having heavily relied on
VLOG(some_integer)
in the past, i can't see a way to continue with this approach seeing abseil-cpps log-severities (https://github.com/abseil/abseil-cpp/blob/master/absl/base/log_severity.h) because of the cardinality of predefined levels of the latter.While having a small set of log-levels is probably a good idea in general and popular among various logging-libraries (e.g. spdlog https://github.com/gabime/spdlog/blob/4f800773393d3ebac13c1fcd946a315d4d72bcd9/include/spdlog/common.h#L211), i only see 3 levels (and a 4th with special semantics).
I'm personally kind of missing
DEBUG
and maybeTRACE
levels (if we stay in predefined-level world).abseil-py surprisingly has support for
DEBUG
(https://abseil.io/docs/python/guides/logging).Having well-supported access to integer-based log-levels would even be better.
or-tools, somewhat reflecting my use-cases (library-code with easy to brake combinatorial-stuff in very deep hierarchies) uses 6 different log-levels too (according to a quick look: https://github.com/google/or-tools/search?q=vlog , link seems to automatically die, but it's a simple search for
VLOG
).Maybe this has something to do with abseil-cpp focusing on service-code and less on library-code?
Is there any oversight on my end or are there any tips on achieving a more fine-granular log-control?
(it seems one could introduce negative levels > kNegativeInfinity, but i'm not sure about the effects of
NormalizeLogSeverity
and it also feels wrong)Thanks for reading!
Beta Was this translation helpful? Give feedback.
All reactions