-record(logger, { level :: flash:level(), writer :: fun((flash:level(), binary(), list(flash:attr())) -> nil), attrs :: list(flash:attr()) }).