You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A convenient feature in the Google Logging Library is the FATALseverity level. Please consider adding something to this library with a similar functionality, i.e. something that logs a message to all reporters, then raises Failure with the reported message.
Likewise, something with the same basic behavior but raises Invalid_argument instead of Failure may also be a convenience.
Note: I'm not asking for a new severity level in this library, recognizing that it may or may not be a useful distinction. Just a way to combine logging a message and raising an exception that contains the message.
Note: the Google Logging Library also offers CHECK macros, which are conceptually similar to assert with logging. A similar convenience here might also be worth considering.
The text was updated successfully, but these errors were encountered:
A convenient feature in the Google Logging Library is the
FATAL
severity level. Please consider adding something to this library with a similar functionality, i.e. something that logs a message to all reporters, then raisesFailure
with the reported message.Likewise, something with the same basic behavior but raises
Invalid_argument
instead ofFailure
may also be a convenience.Note: I'm not asking for a new severity level in this library, recognizing that it may or may not be a useful distinction. Just a way to combine logging a message and raising an exception that contains the message.
Note: the Google Logging Library also offers
CHECK
macros, which are conceptually similar toassert
with logging. A similar convenience here might also be worth considering.The text was updated successfully, but these errors were encountered: