Skip to content

Commit 37a76cf

Browse files
JP-1866: Specify known loggers (#9720)
2 parents a08b055 + 53e8b83 commit 37a76cf

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

changes/9720.stpipe.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
New ``JwstStep.get_stpipe_loggers()`` method to specify loggers to configure.

jwst/stpipe/core.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,20 @@ def _get_crds_parameters(cls, dataset):
8181
# for all other cases, use read_metadata directly to lazy-load
8282
return (read_metadata(dataset, flatten=True), crds_observatory)
8383

84+
@staticmethod
85+
def get_stpipe_loggers():
86+
"""
87+
Get the names of loggers to configure.
88+
89+
Returns
90+
-------
91+
loggers : tuple of str
92+
Tuple of log names to configure.
93+
"""
94+
# Specify the log names for any dependencies whose
95+
# loggers we want to configure
96+
return ("jwst", "stcal", "stdatamodels", "stpipe", "tweakwcs")
97+
8498
def load_as_level2_asn(self, obj):
8599
"""
86100
Load object as an association.

0 commit comments

Comments
 (0)