Skip to content

Commit 729c0bd

Browse files
committed
Import log levels from the logging module
Closes #111
1 parent bb580f6 commit 729c0bd

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

colorlog/__init__.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@
33
import sys
44
import warnings
55

6+
from logging import (
7+
CRITICAL,
8+
FATAL,
9+
ERROR,
10+
WARNING,
11+
WARN,
12+
INFO,
13+
DEBUG,
14+
NOTSET,
15+
)
16+
617
from colorlog.formatter import (
718
default_log_colors,
819
ColoredFormatter,
@@ -41,6 +52,14 @@
4152
"StreamHandler",
4253
"LevelFormatter",
4354
"TTYColoredFormatter",
55+
"CRITICAL",
56+
"FATAL",
57+
"ERROR",
58+
"WARNING",
59+
"WARN",
60+
"INFO",
61+
"DEBUG",
62+
"NOTSET",
4463
)
4564

4665
if sys.version_info < (3, 6):

0 commit comments

Comments
 (0)