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
By default the `cerr` will reject all messages below `FWKINFO` (i.e. `threshold = "FWKINFO"`) and the defaut for `INFO` is set to print no output ,i.e. `limit = 0`. So to see all `INFO` messages one would do
@@ -52,7 +49,6 @@ The `MessageLogger.cerr` PSet knows that all _extra_ parameter labels must be of
52
49
By default the `cerr` will reject all messages below `FWKINFO` (i.e. `threshold = "FWKINFO"`) and the defaut for `INFO` is set to print no output ,i.e. `limit = 0`. In order to see messages for the category 'MyCat' the threshold must be lowered and the category must be explicitly mentioned
The `MessageLogger` PSet knows that all _extra_ parameter labels must be of type `cms.untracked.PSet` so one can use a python `dict` set specific parameters for that PSet and allow all other parameters to use their default default values.
72
67
73
68
69
+
## Have all debug messages be shown
74
70
75
-
## Have debug message show for a given module
76
71
By default, all `LogDebug` code is actually removed at compilation time so any messages you want to see have to be recompiled after setting the `EDM_ML_DEBUG` compilation parameter
77
72
78
73
```bash
79
74
>export USER_CXXFLAGS="-DEDM_ML_DEBUG"
80
75
> scram b ...
81
76
```
82
77
83
-
Then in the `MessageLogger` configuration you need to lower the `threshold` to `"DEBUG"` and then say you want debug messages from the module. So if your module uses the label `myModule` in the configuration, you'd specify
78
+
Then in the `MessageLogger` configuration you need to lower the `threshold` to `"DEBUG"`
79
+
```python
80
+
process.MessageLogger.cerr.threshold ="DEBUG"
81
+
```
82
+
83
+
The default `MessageLogger` configuration leads to all debug messages to be printed (also outside modules).
84
+
84
85
86
+
## Have debug message show for a given module
87
+
88
+
It is possible to restrict the shown debug messages to specific module(s). For example, if your module uses the label `myModule` in the configuration, you'd specify
0 commit comments