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

logging.warning

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


Import

import logging
from logging import warning

Signature & Overview

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

Log a message with severity 'WARNING' 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

assert logging.WARNING == 30 and callable(logging.warning)

Gotchas

REPL Inspect

from logging import warning
help(warning)

Linked from

Related notes