-
Notifications
You must be signed in to change notification settings - Fork 225
Open
Description
We have a bitmask for various logging levels in PIConGPU. The default logging level is PHYSICS = 1. For places where we must warn the user irrespective of the set logging level, there is no obvious solution on how to do this.
A few options are
- Using
CRITICALand enabling this by default - This might be misleading since I think "critical" implies errors - Add a new
MANDATORYlevel bit which is enabled by default. This can be something like1ULL<<7or also1ULL<<63 - Custom log levels per code section - Similar to what radiation does, but IMO this adds complexity without much benefit
- Having a always-true bitmask and call this
MANDATORY- We can use a value like~0ULL(all bits set) so any bitwise&operation returns true. This will require some changes to the logging output logic as it will otherwise say that logs made byMANDATORYare actually made by the level enabled by default.
Metadata
Metadata
Assignees
Labels
No labels