Skip to content

v0.9.0

Compare
Choose a tag to compare
@pamburus pamburus released this 30 Jun 07:39
· 729 commits to master since this release
970bf11
  • new: Added support for configuration files.

    Configuration file should be located in platform-specific locations. The location of configuration directory is defined by platform-dirs crate. In that directory, a sub-directory hl is expected. For example ~/.config/hl/config.yaml for Linux and MacOS.

    Default configuration

    fields:
      time:
        names: [ts, TS, time, TIME, Time, _SOURCE_REALTIME_TIMESTAMP, __REALTIME_TIMESTAMP]
      logger:
        names: [logger, LOGGER, Logger]
      level:
        variants:
          - names: [level, LEVEL, Level]
            values:
              debug: [debug]
              info: [info, information]
              warning: [warning, warn]
              error: [error, err, fatal, critical, panic]
          - names: [PRIORITY]
            values:
              debug: [7]
              info: [6]
              warning: [5, 4]
              error: [3, 2, 1]
      message:
        names: [msg, message, MESSAGE, Message]
      caller:
        names: [caller, CALLER, Caller]