embyt / enocean-mqtt

Receives messages from an enOcean serial interface (USB) and provides selected messages to an MQTT broker.
GNU General Public License v3.0
42 stars 21 forks source link

Stream stdout for console #29

Closed duylong closed 2 years ago

duylong commented 2 years ago

Hi,

For a correct display in the console logs under Docker, I had to specify /dev/stdout in the StreamHandler. By default I have nothing displayed.

    # create console and log file handlers and the formatter to the handlers
    log_console = logging.StreamHandler(sys.stdout)
    log_console.setFormatter(log_formatter)