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
class JDILogger (JDI.core.logger.jdi_logger.JDILogger) adds nothing useful to standard python logging facilities, and also sets up hardcoded log handler, issuing messages to jdi.log
modules that need logging can set up it as follows:
import logging
log = logging.getLogger(name) # for separate logger for every module
log.debug(….)
log.info(….)
log.exception(...)
Actual log destinations, formats, log levels can be set up by JDI package user using global logging config, which can be set up in client project code or in separate config file.
class JDILogger (JDI.core.logger.jdi_logger.JDILogger) adds nothing useful to standard python logging facilities, and also sets up hardcoded log handler, issuing messages to jdi.log
modules that need logging can set up it as follows:
import logging
log = logging.getLogger(name) # for separate logger for every module
log.debug(….)
log.info(….)
log.exception(...)
Actual log destinations, formats, log levels can be set up by JDI package user using global logging config, which can be set up in client project code or in separate config file.
For python way to set up and configure logging please refer to following tutorials: https://docs.python.org/2/howto/logging.html, https://docs.python.org/3/howto/logging-cookbook.html.
For compatibility, JDI logger class could be implemented as follows:
class JDILogger(object):
The text was updated successfully, but these errors were encountered: