Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Changelog

## 3.0.0 3rd March 2021
## 3.0.1 5th March 2022
- Fix: Setup log tracing when `botcore.utils.logging` is imported so that it can be used within botcore functions.

## 3.0.0 3rd March 2022
- Breaking: Move `apply_monkey_patches()` directly to `botcore.utils` namespace

## 2.1.0 24th February 2022
Expand Down
6 changes: 6 additions & 0 deletions botcore/utils/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,9 @@ def get_logger(name: typing.Optional[str] = None) -> CustomLogger:
An instance of the :obj:`CustomLogger` class.
"""
return typing.cast(CustomLogger, logging.getLogger(name))


# Setup trace level logging so that we can use it within botcore.
logging.TRACE = TRACE_LEVEL
logging.setLoggerClass(CustomLogger)
logging.addLevelName(TRACE_LEVEL, "TRACE")
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "bot-core"
version = "3.0.0"
version = "3.0.1"
description = "Bot-Core provides the core functionality and utilities for the bots of the Python Discord community."
authors = ["Python Discord <info@pythondiscord.com>"]
license = "MIT"
Expand Down