🧚 A practical web framework for Gleam

Prefix instead of suffix

authored by Renata Amutio Herrero and committed by Louis Pilfold 4b993441 732a5337

Changed files
+17 -17
src
+1 -1
CHANGELOG.md
··· 4 4 5 5 - The `wisp` module gains the `set_logger_level` function and `LogLevel` type. 6 6 7 - ## v0.16.0 - 2024-06-24 7 + ## v0.16.0 - 2024-07-13 8 8 9 9 - HTML and JSON body functions now include `charset=utf-8` in the content-type 10 10 header.
+16 -16
src/wisp.gleam
··· 1736 1736 /// [1]: https://www.erlang.org/doc/man/logger 1737 1737 /// 1738 1738 pub type LogLevel { 1739 - LevelEmergency 1740 - LevelAlert 1741 - LevelCritical 1742 - LevelError 1743 - LevelWarning 1744 - LevelNotice 1745 - LevelInfo 1746 - LevelDebug 1739 + EmergencyLevel 1740 + AlertLevel 1741 + CriticalLevel 1742 + ErrorLevel 1743 + WarningLevel 1744 + NoticeLevel 1745 + InfoLevel 1746 + DebugLevel 1747 1747 } 1748 1748 1749 1749 fn log_level_to_logging_log_level(log_level: LogLevel) -> logging.LogLevel { 1750 1750 case log_level { 1751 - LevelEmergency -> logging.Emergency 1752 - LevelAlert -> logging.Alert 1753 - LevelCritical -> logging.Critical 1754 - LevelError -> logging.Error 1755 - LevelWarning -> logging.Warning 1756 - LevelNotice -> logging.Notice 1757 - LevelInfo -> logging.Info 1758 - LevelDebug -> logging.Debug 1751 + EmergencyLevel -> logging.Emergency 1752 + AlertLevel -> logging.Alert 1753 + CriticalLevel -> logging.Critical 1754 + ErrorLevel -> logging.Error 1755 + WarningLevel -> logging.Warning 1756 + NoticeLevel -> logging.Notice 1757 + InfoLevel -> logging.Info 1758 + DebugLevel -> logging.Debug 1759 1759 } 1760 1760 } 1761 1761