726 B
726 B
Hints
General
- The
gleam/stringmodule has many useful string functions.
1. Get message from a log line
- The
<>operator can be used in pattern matching to match the beginning of a string. - The
gleam/stringmodule has a function to remove surrounding whitespace from a string.
2. Get log level from a log line
- The
gleam/stringmodule has a function to convert a string to lowercase.
3. Reformat a log line
- The
<>operator can be used to join strings together.