Skip to content

Commit

Permalink
2.0
Browse files Browse the repository at this point in the history
1.Officially release version. #1

1.正式发布版本。#1
  • Loading branch information
2018-11-27 committed Apr 28, 2024
1 parent 6b63be7 commit 8d7b344
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion gqylpy_log/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
>>> import gqylpy_log as glog
>>> glog.info(...)
@version: 2.0alpha1
@version: 2.0
@author: 竹永康 <gqylpy@outlook.com>
@source: https://github.com/gqylpy/gqylpy-log
Expand Down
10 changes: 6 additions & 4 deletions gqylpy_log/g log.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ def __init__(
else:
the_formatter = formatter

the_level: Level = handler_or_params.pop("level", level)
the_filters: List[Filter] = handler_or_params.pop("filters", filters)
the_options: Options = handler_or_params.pop("options", options)
the_level: Level = handler_or_params.pop("level", level)
the_filters: List[Filter] = handler_or_params.pop("filters", filters)
the_options: Options = handler_or_params.pop("options", options)

handler_type: Type[logging.Handler] = \
getattr(logging_handlers, handler_or_params.pop("name"))
Expand Down Expand Up @@ -162,7 +162,9 @@ def logger(
elif gname.__class__ is str:
gobj: logging.Logger = getattr(gpack, gname, None)
if gobj.__class__ is not logging.Logger:
raise NameError(f"gname '{gname}' not in '{__package__}'.")
raise NameError(
f"gname '{gname}' not found in '{__package__}'."
)
elif gname.__class__ is logging.Logger:
gobj: logging.Logger = gname
else:
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
description="""
Secondary encapsulation `logging`, more convenient and fast to create
the logger. Use this module can quickly create instances of
`logging.Logger` and complete a series of log configuration,make your
`logging.Logger` and complete a series of log configuration, make your
code cleaner.
""",
""".strip().replace('\n ', ''),
long_description=open("README.md", encoding="utf8").read(),
long_description_content_type="text/markdown",
packages=[g.__name__],
Expand Down

0 comments on commit 8d7b344

Please sign in to comment.