LSSTApplications  19.0.0-14-gb0260a2+72efe9b372,20.0.0+7927753e06,20.0.0+8829bf0056,20.0.0+995114c5d2,20.0.0+b6f4b2abd1,20.0.0+bddc4f4cbe,20.0.0-1-g253301a+8829bf0056,20.0.0-1-g2b7511a+0d71a2d77f,20.0.0-1-g5b95a8c+7461dd0434,20.0.0-12-g321c96ea+23efe4bbff,20.0.0-16-gfab17e72e+fdf35455f6,20.0.0-2-g0070d88+ba3ffc8f0b,20.0.0-2-g4dae9ad+ee58a624b3,20.0.0-2-g61b8584+5d3db074ba,20.0.0-2-gb780d76+d529cf1a41,20.0.0-2-ged6426c+226a441f5f,20.0.0-2-gf072044+8829bf0056,20.0.0-2-gf1f7952+ee58a624b3,20.0.0-20-geae50cf+e37fec0aee,20.0.0-25-g3dcad98+544a109665,20.0.0-25-g5eafb0f+ee58a624b3,20.0.0-27-g64178ef+f1f297b00a,20.0.0-3-g4cc78c6+e0676b0dc8,20.0.0-3-g8f21e14+4fd2c12c9a,20.0.0-3-gbd60e8c+187b78b4b8,20.0.0-3-gbecbe05+48431fa087,20.0.0-38-ge4adf513+a12e1f8e37,20.0.0-4-g97dc21a+544a109665,20.0.0-4-gb4befbc+087873070b,20.0.0-4-gf910f65+5d3db074ba,20.0.0-5-gdfe0fee+199202a608,20.0.0-5-gfbfe500+d529cf1a41,20.0.0-6-g64f541c+d529cf1a41,20.0.0-6-g9a5b7a1+a1cd37312e,20.0.0-68-ga3f3dda+5fca18c6a4,20.0.0-9-g4aef684+e18322736b,w.2020.45
LSSTDataManagementBasePackage
Classes | Functions | Variables
lsst.log.log.logContinued Namespace Reference

Classes

class  LevelTranslator
 
class  Log
 
class  LogHandler
 
class  UsePythonLogging
 

Functions

def configure (*args)
 
def configure_prop (properties)
 
def getDefaultLogger ()
 
def getLogger (loggername)
 
def MDC (key, value)
 
def MDCRemove (key)
 
def MDCRegisterInit (func)
 
def setLevel (loggername, level)
 
def getLevel (loggername)
 
def isEnabledFor (logger, level)
 
def log (loggername, level, fmt, *args, **kwargs)
 
def trace (fmt, *args)
 
def debug (fmt, *args)
 
def info (fmt, *args)
 
def warn (fmt, *args)
 
def warning (fmt, *args)
 
def error (fmt, *args)
 
def fatal (fmt, *args)
 
def logf (loggername, level, fmt, *args, **kwargs)
 
def tracef (fmt, *args, **kwargs)
 
def debugf (fmt, *args, **kwargs)
 
def infof (fmt, *args, **kwargs)
 
def warnf (fmt, *args, **kwargs)
 
def errorf (fmt, *args, **kwargs)
 
def fatalf (fmt, *args, **kwargs)
 
def lwpID ()
 
def usePythonLogging ()
 
def doNotUsePythonLogging ()
 

Variables

int TRACE = 5000
 
int DEBUG = 10000
 
int INFO = 20000
 
int WARN = 30000
 
int ERROR = 40000
 
int FATAL = 50000
 

Function Documentation

◆ configure()

def lsst.log.log.logContinued.configure ( args)

Definition at line 146 of file logContinued.py.

146 def configure(*args):
147  Log.configure(*args)
148 
149 

◆ configure_prop()

def lsst.log.log.logContinued.configure_prop (   properties)

Definition at line 150 of file logContinued.py.

150 def configure_prop(properties):
151  Log.configure_prop(properties)
152 
153 

◆ debug()

def lsst.log.log.logContinued.debug (   fmt,
args 
)

Definition at line 197 of file logContinued.py.

197 def debug(fmt, *args):
198  Log.getDefaultLogger()._log(DEBUG, False, fmt, *args)
199 
200 

◆ debugf()

def lsst.log.log.logContinued.debugf (   fmt,
args,
**  kwargs 
)

Definition at line 229 of file logContinued.py.

229 def debugf(fmt, *args, **kwargs):
230  Log.getDefaultLogger()._log(DEBUG, True, fmt, *args, **kwargs)
231 
232 

◆ doNotUsePythonLogging()

def lsst.log.log.logContinued.doNotUsePythonLogging ( )

Definition at line 261 of file logContinued.py.

262  Log.doNotUsePythonLogging()
263 
264 

◆ error()

def lsst.log.log.logContinued.error (   fmt,
args 
)

Definition at line 213 of file logContinued.py.

213 def error(fmt, *args):
214  Log.getDefaultLogger()._log(ERROR, False, fmt, *args)
215 
216 

◆ errorf()

def lsst.log.log.logContinued.errorf (   fmt,
args,
**  kwargs 
)

Definition at line 241 of file logContinued.py.

241 def errorf(fmt, *args, **kwargs):
242  Log.getDefaultLogger()._log(ERROR, True, fmt, *args, **kwargs)
243 
244 

◆ fatal()

def lsst.log.log.logContinued.fatal (   fmt,
args 
)

Definition at line 217 of file logContinued.py.

217 def fatal(fmt, *args):
218  Log.getDefaultLogger()._log(FATAL, False, fmt, *args)
219 
220 

◆ fatalf()

def lsst.log.log.logContinued.fatalf (   fmt,
args,
**  kwargs 
)

Definition at line 245 of file logContinued.py.

245 def fatalf(fmt, *args, **kwargs):
246  Log.getDefaultLogger()._log(FATAL, True, fmt, *args, **kwargs)
247 
248 

◆ getDefaultLogger()

def lsst.log.log.logContinued.getDefaultLogger ( )

Definition at line 154 of file logContinued.py.

154 def getDefaultLogger():
155  return Log.getDefaultLogger()
156 
157 

◆ getLevel()

def lsst.log.log.logContinued.getLevel (   loggername)

Definition at line 178 of file logContinued.py.

178 def getLevel(loggername):
179  Log.getLogger(loggername).getLevel()
180 
181 

◆ getLogger()

def lsst.log.log.logContinued.getLogger (   loggername)

Definition at line 158 of file logContinued.py.

158 def getLogger(loggername):
159  return Log.getLogger(loggername)
160 
161 

◆ info()

def lsst.log.log.logContinued.info (   fmt,
args 
)

Definition at line 201 of file logContinued.py.

201 def info(fmt, *args):
202  Log.getDefaultLogger()._log(INFO, False, fmt, *args)
203 
204 

◆ infof()

def lsst.log.log.logContinued.infof (   fmt,
args,
**  kwargs 
)

Definition at line 233 of file logContinued.py.

233 def infof(fmt, *args, **kwargs):
234  Log.getDefaultLogger()._log(INFO, True, fmt, *args, **kwargs)
235 
236 

◆ isEnabledFor()

def lsst.log.log.logContinued.isEnabledFor (   logger,
  level 
)

Definition at line 182 of file logContinued.py.

182 def isEnabledFor(logger, level):
183  Log.getLogger(logger).isEnabledFor(level)
184 
185 
186 # This will cause a warning in Sphinx documentation due to confusion between
187 # Log and log. https://github.com/astropy/sphinx-automodapi/issues/73 (but
188 # note that this does not seem to be Mac-only).

◆ log()

def lsst.log.log.logContinued.log (   loggername,
  level,
  fmt,
args,
**  kwargs 
)

Definition at line 189 of file logContinued.py.

189 def log(loggername, level, fmt, *args, **kwargs):
190  Log.getLogger(loggername)._log(level, False, fmt, *args)
191 
192 

◆ logf()

def lsst.log.log.logContinued.logf (   loggername,
  level,
  fmt,
args,
**  kwargs 
)

Definition at line 221 of file logContinued.py.

221 def logf(loggername, level, fmt, *args, **kwargs):
222  Log.getLogger(loggername)._log(level, True, fmt, *args, **kwargs)
223 
224 

◆ lwpID()

def lsst.log.log.logContinued.lwpID ( )

Definition at line 249 of file logContinued.py.

249 def lwpID():
250  return Log.lwpID
251 
252 
253 # This will cause a warning in Sphinx documentation due to confusion between
254 # UsePythonLogging and usePythonLogging.
255 # https://github.com/astropy/sphinx-automodapi/issues/73 (but note that this
256 # does not seem to be Mac-only).

◆ MDC()

def lsst.log.log.logContinued.MDC (   key,
  value 
)

Definition at line 162 of file logContinued.py.

162 def MDC(key, value):
163  Log.MDC(key, str(value))
164 
165 

◆ MDCRegisterInit()

def lsst.log.log.logContinued.MDCRegisterInit (   func)

Definition at line 170 of file logContinued.py.

170 def MDCRegisterInit(func):
171  Log.MDCRegisterInit(func)
172 
173 

◆ MDCRemove()

def lsst.log.log.logContinued.MDCRemove (   key)

Definition at line 166 of file logContinued.py.

166 def MDCRemove(key):
167  Log.MDCRemove(key)
168 
169 

◆ setLevel()

def lsst.log.log.logContinued.setLevel (   loggername,
  level 
)

Definition at line 174 of file logContinued.py.

174 def setLevel(loggername, level):
175  Log.getLogger(loggername).setLevel(level)
176 
177 

◆ trace()

def lsst.log.log.logContinued.trace (   fmt,
args 
)

Definition at line 193 of file logContinued.py.

193 def trace(fmt, *args):
194  Log.getDefaultLogger()._log(TRACE, False, fmt, *args)
195 
196 

◆ tracef()

def lsst.log.log.logContinued.tracef (   fmt,
args,
**  kwargs 
)

Definition at line 225 of file logContinued.py.

225 def tracef(fmt, *args, **kwargs):
226  Log.getDefaultLogger()._log(TRACE, True, fmt, *args, **kwargs)
227 
228 

◆ usePythonLogging()

def lsst.log.log.logContinued.usePythonLogging ( )

Definition at line 257 of file logContinued.py.

257 def usePythonLogging():
258  Log.usePythonLogging()
259 
260 

◆ warn()

def lsst.log.log.logContinued.warn (   fmt,
args 
)

Definition at line 205 of file logContinued.py.

205 def warn(fmt, *args):
206  Log.getDefaultLogger()._log(WARN, False, fmt, *args)
207 
208 

◆ warnf()

def lsst.log.log.logContinued.warnf (   fmt,
args,
**  kwargs 
)

Definition at line 237 of file logContinued.py.

237 def warnf(fmt, *args, **kwargs):
238  Log.getDefaultLogger()._log(WARN, True, fmt, *args, **kwargs)
239 
240 

◆ warning()

def lsst.log.log.logContinued.warning (   fmt,
args 
)

Definition at line 209 of file logContinued.py.

209 def warning(fmt, *args):
210  warn(fmt, *args)
211 
212 

Variable Documentation

◆ DEBUG

int lsst.log.log.logContinued.DEBUG = 10000

Definition at line 42 of file logContinued.py.

◆ ERROR

int lsst.log.log.logContinued.ERROR = 40000

Definition at line 45 of file logContinued.py.

◆ FATAL

int lsst.log.log.logContinued.FATAL = 50000

Definition at line 46 of file logContinued.py.

◆ INFO

int lsst.log.log.logContinued.INFO = 20000

Definition at line 43 of file logContinued.py.

◆ TRACE

int lsst.log.log.logContinued.TRACE = 5000

Definition at line 41 of file logContinued.py.

◆ WARN

int lsst.log.log.logContinued.WARN = 30000

Definition at line 44 of file logContinued.py.

lsst::log.log.logContinued.warnf
def warnf(fmt, *args, **kwargs)
Definition: logContinued.py:237
lsst::log.log.logContinued.logf
def logf(loggername, level, fmt, *args, **kwargs)
Definition: logContinued.py:221
lsst::log.log.logContinued.infof
def infof(fmt, *args, **kwargs)
Definition: logContinued.py:233
lsst::log.log.logContinued.warn
def warn(fmt, *args)
Definition: logContinued.py:205
lsst::log.log.logContinued.info
def info(fmt, *args)
Definition: logContinued.py:201
lsst::log.log.logContinued.error
def error(fmt, *args)
Definition: logContinued.py:213
lsst::log.log.logContinued.debugf
def debugf(fmt, *args, **kwargs)
Definition: logContinued.py:229
lsst::log.log.logContinued.usePythonLogging
def usePythonLogging()
Definition: logContinued.py:257
lsst::log.log.logContinued.MDCRemove
def MDCRemove(key)
Definition: logContinued.py:166
lsst::log.log.logContinued.getLevel
def getLevel(loggername)
Definition: logContinued.py:178
lsst::log.log.logContinued.tracef
def tracef(fmt, *args, **kwargs)
Definition: logContinued.py:225
lsst::log.log.logContinued.lwpID
def lwpID()
Definition: logContinued.py:249
lsst::log.log.logContinued.configure
def configure(*args)
Definition: logContinued.py:146
lsst::log.log.logContinued.fatal
def fatal(fmt, *args)
Definition: logContinued.py:217
lsst::log.log.logContinued.errorf
def errorf(fmt, *args, **kwargs)
Definition: logContinued.py:241
lsst::log.log.logContinued.MDC
def MDC(key, value)
Definition: logContinued.py:162
lsst::log.log.logContinued.warning
def warning(fmt, *args)
Definition: logContinued.py:209
lsst::log.log.logContinued.configure_prop
def configure_prop(properties)
Definition: logContinued.py:150
lsst::log.log.logContinued.trace
def trace(fmt, *args)
Definition: logContinued.py:193
lsst::log.log.logContinued.debug
def debug(fmt, *args)
Definition: logContinued.py:197
lsst::log.log.logContinued.getDefaultLogger
def getDefaultLogger()
Definition: logContinued.py:154
lsst::log.log.logContinued.fatalf
def fatalf(fmt, *args, **kwargs)
Definition: logContinued.py:245
lsst::log.log.logContinued.isEnabledFor
def isEnabledFor(logger, level)
Definition: logContinued.py:182
lsst::log.log.logContinued.doNotUsePythonLogging
def doNotUsePythonLogging()
Definition: logContinued.py:261
lsst::log.log.logContinued.getLogger
def getLogger(loggername)
Definition: logContinued.py:158
lsst::log.log.logContinued.log
def log(loggername, level, fmt, *args, **kwargs)
Definition: logContinued.py:189
lsst::log.log.logContinued.setLevel
def setLevel(loggername, level)
Definition: logContinued.py:174
lsst::log.log.logContinued.MDCRegisterInit
def MDCRegisterInit(func)
Definition: logContinued.py:170