Skip to content

Commit

Permalink
📝 [Doc] README: update example with latest feature, and upgrade to v1…
Browse files Browse the repository at this point in the history
….1.11
  • Loading branch information
Hansimov committed Oct 26, 2024
1 parent 1927c81 commit 1814d6d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,17 @@ from tclogger import TCLogbar, TCLogbarGroup
from tclogger import brk, brc, brp


def test_logger_verbose():
logger.note("Hello ", end="")
logger.warn("You should not see this message", verbose=False)
logger.mesg("World")
logger.verbose = False
logger.warn("You should not see later messages")
logger.verbose = True
logger.set_indent(2)
logger.success("You should see this message, with indent")


def test_run_timer_and_logger():
with Runtimer():
logger.note(tclogger.__file__)
Expand Down Expand Up @@ -178,6 +189,7 @@ def test_decorations():


if __name__ == "__main__":
test_logger_verbose()
test_run_timer_and_logger()
test_dt_to_str()
test_color()
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "tclogger"
version = "1.1.10.1"
version = "1.1.11"
authors = [
{ name="Hansimov" },
]
Expand Down

0 comments on commit 1814d6d

Please sign in to comment.