log to console as argument

This commit is contained in:
jb-alvarado 2019-11-11 21:50:29 +01:00
parent 6963fad6e0
commit 7c7719e224
2 changed files with 2 additions and 2 deletions

View File

@ -127,7 +127,7 @@ ffplayout also allows the passing of parameters:
- `-c, --config` use given config file
- `-d, --desktop` preview on desktop
- `-f, --folder` use folder for playing
- `-l, --log` for user-defined log file
- `-l, --log` for user-defined log file, *none* for console output
- `-i, --loop` loop playlist infinitely
- `-p, --playlist` for playlist file
- `-s, --start` set start time in *hh:mm:ss*, *now* for start with first'

View File

@ -311,7 +311,7 @@ console_handler = logging.StreamHandler()
formatter = logging.Formatter('[%(asctime)s] [%(levelname)s] %(message)s')
if _log.to_file:
if _log.to_file and _log.path != 'none':
file_handler = TimedRotatingFileHandler(_log.path, when='midnight',
backupCount=5)
file_handler.setFormatter(formatter)