# Copy this sample file next to the binary to test (e.g. in "./target/release")
[]
= "async_web_socket"
= "ws://127.0.0.1:55555" # Make sure to either spawn a web server at this address or
# change this URL.
= "magic-value"
[]
= "console"
[]
= "async_file"
= "This-is-a-sample-output.log"
= "{l} {d(%H:%M:%S.%f)} [{M} #FS#{f}#FE#:{L}] {m}{n}"
= true
= true
# This will log all levels from log_test into file and web socket.
[]
= "trace"
= ["aws", "async_file"]
= false # If true it will also send it to the appenders ("display") of parent ("root").
# This will log from info level from log_test::abc into file and console.
[]
= "info"
= ["display", "async_file"]
= false # If true it will also send it to the appenders ("aws") of parent ("log_test").
# Although we don't need root logger, this is just for demonstration purpose.
[]
= "error" # This will log all levels which are equal to or more severe to this from all crates
# and dependencies including 3rd party crates used in build process not covered by
# above loggers ("log_test" and "log_test::abc").
= ["display", "async_file"] # May not be supplied if not required.