Leibniz-HBI / tegracli

A Telegram/telethon research convenience wrapper for the terminal.
https://pypi.org/project/tegracli/
MIT License
5 stars 1 forks source link

feat: add logging options #54

Closed pekasen closed 1 year ago

pekasen commented 1 year ago

This adds the following command line options to tegracli:

  -v, --verbose            Logging verbosity.
  -l, --log-file FILENAME  File to log to. Defaults to STDOUT.
  -s, --serialize          Serialize output to JSON.

This allows to extensively set the logging configuration and supports setting the log level, destination (defaulting to STDOUT) and plain text or JSON output.

Closes #53.