Skip to content

v1.3.0 Updates

Compare
Choose a tag to compare
@BNMetrics BNMetrics released this 28 Sep 20:13
· 37 commits to master since this release

1.3.0 (2018-09-28)

Improvement

  • Allowing configuration of datefmt, and style for master level formatters in logme.ini.
    • This change does not break the previous version, you can still specify only the fmt
    • Does not apply to logme init or logme add {config_name} command for generate automatic
    • Default style will still be { if none specified
  • example:

.. code-block:: ini

[my_config]
level = DEBUG
formatter =
    fmt: {asctime} - {name} - {levelname} - {message}
    datefmt: %Y/%m/%d
    style: {
stream =
    type: StreamHandler
    active: True
    level: DEBUG
file =
    type: FileHandler
    active: True
    level: DEBUG
    formatter: {name} :: {funcName} :: {levelname} :: {message}
    filename: mylogpath/foo.log