summary refs log tree commit diff stats
path: root/rust/semi-structured-logs/HINTS.md
diff options
context:
space:
mode:
Diffstat (limited to 'rust/semi-structured-logs/HINTS.md')
-rw-r--r--rust/semi-structured-logs/HINTS.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/rust/semi-structured-logs/HINTS.md b/rust/semi-structured-logs/HINTS.md
new file mode 100644
index 0000000..1804e14
--- /dev/null
+++ b/rust/semi-structured-logs/HINTS.md
@@ -0,0 +1,13 @@
+# Hints
+
+## General
+
+- [Rust By Example - Enums][rbe-enums]
+- [cheats.rs - Basic Types][cheats-types]
+
+## 1. Emit semi-structured messages
+
+- `match` comes in handy when working with enums. In this case, see how you might use it when figuring how what kind of log message to generate.
+
+[rbe-enums]: https://doc.rust-lang.org/stable/rust-by-example/custom_types/enum.html#enums
+[cheats-types]: https://cheats.rs/#basic-types
\ No newline at end of file