mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 19:21:31 +00:00
13 lines
314 B
Python
13 lines
314 B
Python
from sys import stderr
|
|
from os.path import join
|
|
|
|
from tfw.config import TFWENV
|
|
from tfw.logging import Log, Logger, LogFormatter, VerboseLogFormatter
|
|
|
|
|
|
def setup_logger(name):
|
|
Logger([
|
|
Log(stderr, LogFormatter(20)),
|
|
Log(join(TFWENV.LOGS_DIR, name+'.log'), VerboseLogFormatter())
|
|
]).start()
|