# A sample log configuration file for running in release mode. By default, this configuration splits up log messages to
# three destinations:
#    * Console: For log messages with level INFO and higher
#    * log/transcoder/transcoder.log: All transcoder logs will be written to this file
#
#  See https://docs.rs/log4rs/0.8.3/log4rs/encode/pattern/index.html for deciphering the log pattern. The log format
#  used in this sample configuration prints messages as:
#  timestamp [target] LEVEL message
refresh_rate: 30 seconds
appenders:
  # An appender named "transcoder" that writes to a file with a custom pattern encoder
  transcoder:
    kind: rolling_file
    path: "log/transcoder/transcoder.log"
    policy:
      kind: compound
      trigger:
        kind: size
        limit: 200mb
      roller:
        kind: fixed_window
        base: 1
        count: 50
        pattern: "log/transcoder/transcoder.{}.log"
    encoder:
      pattern: "{d(%Y-%m-%d %H:%M:%S.%f)} [{t}] {l:5} {m}{n}"

# root (to transcoder)
root:
  level: debug
  appenders:
    - transcoder

loggers:
  h2:
    level: info
  hyper:
    level: info
