Amazon VERSION 2.0V1 Guide de l'utilisateur Page 30

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 264
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 29
30
logging.debug("This is a debugging message.")
Custom Logger
Instead of using the root logger, you can create a custom logger object. The following example creates a custom
logger and generates a message of each level using that logger:
import logging
log = logging.getLogger("myLogger")
log.info("This is an informational message.")
log.warning("This is a warning message.")
log.error("This is an error message.")
log.critical("This is a fatal error message.")
log.debug("This is a debugging message.")
NOTE: The Message level display option in the Messages window is independent of the level of message
actually generated. For example, if the Messages window is set to show debug messages, debug
messages are only actually be displayed if the level of message generated is also set to include debug.
See Installation and Licensing > Configuring Message Level in the Katana User Guide for more on
how to set the level of message that is generated.
5 MESSAGE LOGGING |
Vue de la page 29
1 2 ... 25 26 27 28 29 30 31 32 33 34 35 ... 263 264

Commentaires sur ces manuels

Pas de commentaire