Skip to content

Commit

Permalink
fix bold
Browse files Browse the repository at this point in the history
  • Loading branch information
SAKURA-CAT committed Jun 18, 2024
1 parent 95a901d commit b3ea73d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ build-backend = "hatchling.build"

[project]
name = "swankit"
version = "0.1.0b6"
version = "0.1.0b7"
dynamic = ["readme"]
description = "Base toolkit for SwanLab"
license = "Apache-2.0"
Expand Down
11 changes: 6 additions & 5 deletions swankit/log/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,13 @@ class SwanLabSharedLog:
def __init__(self, name=__name__.lower(), level: Levels = "info", file=None):
self.__file = file if file else sys.stdout
self.__level: int = 0
# 粗体
self.__prefix_dict = {
"debug": FONT.grey(name) + ":",
"info": FONT.blue(name) + ":",
"warning": FONT.yellow(name) + ":",
"error": FONT.red(name) + ":",
"critical": FONT.bold(FONT.red(name)) + ":",
"debug": FONT.bold(FONT.grey(name)) + ":",
"info": FONT.bold(FONT.blue(name)) + ":",
"warning": FONT.bold(FONT.yellow(name)) + ":",
"error": FONT.bold(FONT.red(name)) + ":",
"critical": FONT.bold(FONT.bold(FONT.red(name))) + ":",
}
self.__levels_dict = {
"debug": DEBUG,
Expand Down

0 comments on commit b3ea73d

Please sign in to comment.