2 # File: messages_icarus.fcl
3 # Purpose: presets for art message logging
4 # Author: Gianluca Petrillo
5 # Date: October 13, 2020
9 # - icarus_message_services: kind of "standard"
10 # - icarus_message_services_prod: non-interactive jobs (like in production)
11 # - icarus_message_services_prod_debug: non-interactive jobs with debugging
12 # - icarus_message_services_interactive: interactive jobs
13 # - icarus_message_services_interactive_debug: interactive jobs with debugging
15 # Reminder: to limit a number of messages in a specific category,
16 # add in a destination a configuration for that category:
20 # # suppress all the messages in "UselessMessage" category
21 # UselessMessage: { limit: 0 }
23 # # reduce the messages from "AnnoyingMessage" category;
24 # # they will still appear now and then
25 # AnnoyingMessage: { limit: 5 timespan: 10 }
27 # # this means no limit
35 # services.message: @local::icarus_message_services
39 # 20180521 (petrillo@slac.stanford.edu) [v1.0]
40 # adapted from messages_sbnd.fcl (sbndcode v06_76_00)
41 # 20201013 (petrillo@slac.stanford.edu) [v1.1]
48 # standard ICARUS message destinations
50 message_debugfile_icarus: {
52 # message destination: all debug messages to a file
61 } # message_debugfile_icarus
64 message_infofile_icarus: {
66 # message destination: all debug messages to a file
75 } # message_infofile_icarus
78 message_errorfile_icarus: {
80 # message destination: all error messages to "errors.log" file
89 } # message_errorfile_icarus
92 message_stdout_warning_icarus: {
94 # message destination: all warning messages to standard output
101 } # message_stdout_warning_icarus
104 message_stdout_icarus: {
106 # message destination: all messages to standard output;
107 # special suppression for NuRandomService messages
108 # (recover them with `message_randomseeds_file_icarus`)
114 NuRandomService: { limit: 0 }
116 } # message_stdout_icarus
119 message_stderr_icarus: {
121 # message destination: all error messages to standard error
128 } # message_stderr_icarus
131 message_randomseeds_file_icarus: {
133 # message destination: all NuRandomService messages to "randomseeds.log" file
140 NuRandomService: { limit: -1 }
141 default: { limit: 0 }
143 } # message_randomseeds_file_icarus
146 # icarus_message_services
147 # ------------------------
149 # Enables debug messages. Errors saved in a file.
151 # - standard output with only WARNING and worse
152 # - "errors.log" collecting error messages (also included in standard output)
153 # - "debug.log" with DEBUG (that is, every message) for all modules;
154 # in non-debug qualifier builds, LOG_DEBUG and LOG_TRACE are disabled and
155 # their messages are never produced (that is, won't be in "debug.log" either).
157 # No special stream for errors.
159 icarus_message_services:
162 LogStandardOut: @local::message_stdout_warning_icarus
163 LogInfoFile: @local::message_infofile_icarus
164 LogErrorFile: @local::message_errorfile_icarus
167 } # icarus_message_services
171 # icarus_message_services_prod_debug
172 # -----------------------------------
174 # Enables debug messages.
176 # - standard error with only ERROR and worse
177 # - standard output with only WARNING and worse (will also repeat the error
178 # messages, that will appear in error messages being printed twice if the
179 # standard output and error are directed to the same file or to the console)
180 # - "debug.log" with DEBUG (that is, every message) for all modules;
181 # in non-debug qualifier builds, LOG_DEBUG and LOG_TRACE are disabled and
182 # their messages are never produced (that is, won't be in "debug.log" either).
184 icarus_message_services_prod_debug:
187 LogDebugFile: @local::message_debugfile_icarus
188 LogStandardOut: @local::message_stdout_warning_icarus
189 LogStandardError: @local::message_stderr_icarus
191 } # icarus_message_services_prod_debug
194 icarus_message_services_prod_debug.destinations.LogDebugFile.categories:{
200 # icarus_message_services_prod
201 # -----------------------------
203 # - standard error with only ERROR and worse
204 # - standard output with only WARNING and worse (will also repeat the error
205 # messages, that will appear in error messages being printed twice if the
206 # standard output and error are directed to the same file or to the console)
209 icarus_message_services_prod:
212 LogStandardOut: @local::message_stdout_warning_icarus
213 LogStandardError: @local::message_stderr_icarus
219 # icarus_message_services_interactive
220 # ------------------------------------
222 # - standard output with only INFO and worse
223 # - "errors.log" collecting warning and error messages (also included in
226 # No special stream for errors.
229 icarus_message_services_interactive:
232 LogStandardOut: @local::message_stdout_icarus
233 LogSeeds: @local::message_randomseeds_file_icarus
234 LogErrorFile: @local::message_errorfile_icarus
237 icarus_message_services_interactive.destinations.LogErrorFile.threshold:
"WARNING"
241 # icarus_message_services_interactive_debug
242 # ------------------------------------------
244 # Enables debug messages.
246 # - standard output with only INFO and worse
247 # - "errors.log" collecting warning and error messages (also included in
249 # - "debug.log" with DEBUG (that is, every message) for all modules;
250 # in non-debug qualifier builds, LOG_DEBUG and LOG_TRACE are disabled and
251 # their messages are never produced (that is, won't be in "debug.log" either).
253 # No special stream for errors.
256 icarus_message_services_interactive_debug: {
257 @table::icarus_message_services_interactive
259 icarus_message_services_interactive_debug.destinations.LogDebugFile: @local::message_debugfile_icarus
BEGIN_PROLOG could also be dds filename