On this page
  1. logging.critical
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

logging.critical

Prev: logging.captureWarnings | Up: logging | Next: logging.debug
Rel: logging.addLevelName, logging.basicConfig, logging.BufferingFormatter, logging.captureWarnings
Ref: docs.python.org — logging.critical
Tags: #public #python3 #stdlib #logging


Import

import logging
from logging import critical

Signature & Overview

logging.critical(msg, *args, **kwargs)

Log a message with severity 'CRITICAL' on the root logger. If the logger has no handlers, call basicConfig() to add a console handler with a pre-defined format.

Usage

import logging

# Logs a CRITICAL (level 50) message on the root logger
assert logging.CRITICAL == 50 and callable(logging.critical)

Gotchas

REPL Inspect

from logging import critical
help(critical)

Linked from

Related notes