Log formatter

Fixes #3

Let me know anyway I can improve! I still feel like I'm learning 'the functional way' so any feedback is appreciated.


This `rem/2` is unnecessary, the value is always less than `1_000_000`.