-
Notifications
You must be signed in to change notification settings - Fork 1
/
logging.yaml
201 lines (174 loc) · 5.16 KB
/
logging.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
schema_version: 1
# Example on how to use the logging.yaml file based on
#
# https://github.com/GEOS-ESM/MAPL/wiki/How-to-use-the-MAPL-logging-library,-aka-%22pFlogger%22
#
###############################
locks:
mpi:
class: MpiLock
comm: MPI_COMM_WORLD
###############################
formatters:
plain:
class: Formatter
format: '%(message)a'
basic:
class: Formatter
format: '%(short_name)a15~: %(level_name)a~: %(message)a'
mpi:
class: MpiFormatter
format: '%(mpi_rank)i4.4~: %(name)~: %(level_name)a~: %(message)a'
comm: MPI_COMM_WORLD
column:
class: Formatter
format: '(%(i)i3.3,%(j)i3.3): %(level_name)'
# This makes an output like:
# AGCM Date: 2000/04/14 Time: 21:00:00 GENERIC: DEBUG: Message
simtime:
class: Formatter
format: '%(simtime)a~ %(short_name)a15~: %(level_name)a~: %(message)a'
datefmt: ' AGCM Date: %(Y)i4.4~/%(M)i2.2~/%(D)i2.2 Time: %(HH)i2.2~:%(MM)i2.2~:%(SS)i2.2'
###############################
handlers:
console:
class: streamhandler
formatter: basic
unit: OUTPUT_UNIT
level: INFO
console_plain:
class: streamhandler
formatter: plain
unit: OUTPUT_UNIT
level: INFO
console_simtime:
class: streamhandler
formatter: simtime
unit: OUTPUT_UNIT
level: DEBUG
warnings:
class: FileHandler
filename: warnings_and_errors.log
lock: mpi
level: WARNING
formatter: basic
errors:
class: StreamHandler
formatter: basic
unit: ERROR_UNIT
level: ERROR
mpi_shared:
class: FileHandler
filename: allPEs.log
formatter: mpi
comm: MPI_COMM_WORLD
lock: mpi
rank_keyword: rank
level: DEBUG
mpi_debug:
class: MpiFileHandler
formatter: basic
filename: debug_%(rank)i3.3~.log
comm: MPI_COMM_WORLD
rank_prefix: rank
level: DEBUG
###############################
root:
handlers: [warnings,errors,console]
level: WARNING
root_level: WARNING
###############################
loggers:
errors:
handlers: [errors]
level: ERROR
CAP:
level: WARNING
root_level: INFO
MAPL:
handlers: [mpi_shared]
level: WARNING
root_level: INFO
MAPL.profiler:
handlers: [console_plain]
propagate: FALSE
level: WARNING
root_level: INFO
# To enable this logger, set the console handler
# above to DEBUG level
CAP.EXTDATA:
level: WARNING
root_level: DEBUG
# Note: When enabling another logger, make sure
# indentation matches that of the above
# loggers!
# MAPL.base:
# MAPL.generic:
# MAPL.pfio
# SHARED.GMAOSHARED.GEOSSHARED.QSAT:
# CAP.EXTDATA:
# CAP.HISTORY:
# CAP.GCM.DATATM:
# CAP.GCM.AGCM:
# CAP.GCM.AGCM.SCMDYNAMICS:
# CAP.GCM.AGCM.SCMDYNAMICS.DYN:
# CAP.GCM.AGCM.SCMDYNAMICS.ADV:
# CAP.GCM.AGCM.SUPERDYNAMICS:
# CAP.GCM.AGCM.SUPERDYNAMICS.DYN:
# CAP.GCM.AGCM.SUPERDYNAMICS.ADV:
# CAP.GCM.AGCM.PHYSICS:
# CAP.GCM.AGCM.PHYSICS.GWD:
# CAP.GCM.AGCM.PHYSICS.MOIST:
# CAP.GCM.AGCM.PHYSICS.TURBULENCE:
# CAP.GCM.AGCM.PHYSICS.CHEMISTRY:
# CAP.GCM.AGCM.PHYSICS.CHEMISTRY.HEMCO:
# CAP.GCM.AGCM.PHYSICS.CHEMISTRY.PCHEM:
# CAP.GCM.AGCM.PHYSICS.CHEMISTRY.ACHEM:
# CAP.GCM.AGCM.PHYSICS.CHEMISTRY.GOCART2G:
# CAP.GCM.AGCM.PHYSICS.CHEMISTRY.GOCART2G.CA.bc:
# CAP.GCM.AGCM.PHYSICS.CHEMISTRY.GOCART2G.CA.br:
# CAP.GCM.AGCM.PHYSICS.CHEMISTRY.GOCART2G.CA.oc:
# CAP.GCM.AGCM.PHYSICS.CHEMISTRY.GOCART2G.DU:
# CAP.GCM.AGCM.PHYSICS.CHEMISTRY.GOCART2G.NI:
# CAP.GCM.AGCM.PHYSICS.CHEMISTRY.GOCART2G.SS:
# CAP.GCM.AGCM.PHYSICS.CHEMISTRY.GOCART2G.SU:
# CAP.GCM.AGCM.PHYSICS.CHEMISTRY.GOCART.CFC:
# CAP.GCM.AGCM.PHYSICS.CHEMISTRY.GOCART.CH4:
# CAP.GCM.AGCM.PHYSICS.CHEMISTRY.GOCART.CO2:
# CAP.GCM.AGCM.PHYSICS.CHEMISTRY.GOCART.CO:
# CAP.GCM.AGCM.PHYSICS.CHEMISTRY.GOCART.O3:
# CAP.GCM.AGCM.PHYSICS.CHEMISTRY.GOCART.Rn:
# CAP.GCM.AGCM.PHYSICS.CHEMISTRY.GAAS:
# CAP.GCM.AGCM.PHYSICS.CHEMISTRY.H2O:
# CAP.GCM.AGCM.PHYSICS.CHEMISTRY.STRATCHEM:
# CAP.GCM.AGCM.PHYSICS.CHEMISTRY.GMICHEM:
# CAP.GCM.AGCM.PHYSICS.CHEMISTRY.CARMA:
# CAP.GCM.AGCM.PHYSICS.CHEMISTRY.GEOSCHEMCHEM:
# CAP.GCM.AGCM.PHYSICS.CHEMISTRY.MATRIX:
# CAP.GCM.AGCM.PHYSICS.CHEMISTRY.MAM:
# CAP.GCM.AGCM.PHYSICS.CHEMISTRY.TR:
# CAP.GCM.AGCM.PHYSICS.CHEMISTRY.DNA:
# CAP.GCM.AGCM.PHYSICS.SURFACE:
# CAP.GCM.AGCM.PHYSICS.SURFACE.SALTWATER:
# CAP.GCM.AGCM.PHYSICS.SURFACE.LAKE:
# CAP.GCM.AGCM.PHYSICS.SURFACE.LANDICE:
# CAP.GCM.AGCM.PHYSICS.SURFACE.LAND:
# CAP.GCM.AGCM.PHYSICS.SURFACE.LAND.VEGDYN:
# CAP.GCM.AGCM.PHYSICS.SURFACE.LAND.<CATCH>:
# CAP.GCM.AGCM.PHYSICS.SURFACE.LAND.<CATCHCN>:
# CAP.GCM.AGCM.PHYSICS.SURFACE.LAND.<ens>:
# CAP.GCM.AGCM.PHYSICS.RADIATION:
# CAP.GCM.AGCM.PHYSICS.RADIATION.SOLAR:
# CAP.GCM.AGCM.PHYSICS.RADIATION.IRRAD:
# CAP.GCM.AGCM.PHYSICS.RADIATION.SATSIM:
# CAP.GCM.AGCM.ORBIT:
# CAP.GCM.AIAU:
# CAP.GCM.OGCM:
# CAP.GCM.OGCM.OBIO:
# CAP.GCM.OGCM.ORAD:
# CAP.GCM.OGCM.SEAICE:
# CAP.GCM.OGCM.SEAICEdata:
# CAP.GCM.OGCM.OCEAN:
# CAP.GCM.OGCM.OCEAN.DATASEA:
# CAP.GCM.OGCM.OCEAN.MOM:
# CAP.GCM.OGCM.OCEAN.MOM6: