Skip to content

Commit

Permalink
Introduce colorized logging
Browse files Browse the repository at this point in the history
  • Loading branch information
thombashi committed Jul 8, 2018
1 parent ab9de88 commit a253471
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions requirements/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
appconfigpy>=0.0.4
click>=6.7
colorama>=0.3.9
enum34;python_version<"3.4"
logbook
msgfy>=0.0.2
Expand Down
3 changes: 2 additions & 1 deletion sqlitebiter/sqlitebiter.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

import click
import logbook
import logbook.more
import path
import pytablereader as ptr
import simplesqlite as sqlite
Expand All @@ -32,7 +33,7 @@
)
QUIET_LOG_LEVEL = logbook.NOTSET

logbook.StderrHandler(
logbook.more.ColorizedStderrHandler(
level=logbook.DEBUG,
format_string="[{record.level_name}] {record.channel}: {record.message}"
).push_application()
Expand Down

0 comments on commit a253471

Please sign in to comment.