Log4rs pattern not shown as declared

I want to see this pattern {h(%Y-%m-%d %H:%M:%S)} | {({l}):5.5} | [{f}:{L}] — {m}{n}
which should look like this
2024-03-22 08:35:13 | INFO | [actix_server::worker] - shutting down idle worker
but its output is like this
2024-03-22T08:35:13.695797771+01:00 INFO actix_server::worker - shutting down idle worker .
And I want to colorize the log level but it does not work either.

How can I fix this?

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.