Skip to content

Commit 44e3b8c

Browse files
roelschrralphrass
authored andcommitted
[MLOP-640] Create CLI with migrate command (#298)
1 parent 346b27b commit 44e3b8c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

butterfree/_cli/__init__.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import logging
2+
3+
4+
def __logger(name: str) -> logging.Logger:
5+
format_ = "%(name)s:%(asctime)-15s:%(levelname)s:< %(message)s >"
6+
logging.basicConfig(format=format_, level=logging.INFO)
7+
return logging.getLogger(name)
8+
9+
10+
cli_logger = __logger("butterfree")

0 commit comments

Comments
 (0)