pub fn write(level: Level, message: impl AsRef<str>)
Write a message with the given level. This is a low-level function, use the log!, debug!, info!, warning!, and error! macros instead.