3 ms·
Not gonna lie, this logging api is a howler. “”” Good: logger.info("hello world") Bad: let message = "hello world" logger.info(message) If you have a Str
by Redoubts 7y ago
Not gonna lie, this logging api is a howler.
“””
Good:
logger.info("hello world")
Bad:
let message = "hello world"
logger.info(message)
If you have a String that you received from elsewhere, please use
logger.info("\(stringIAlreadyHave)")
“””
Ugh.
And the payload field (think extra= in python logging) is pretty gross, you can’t even pass a [String: String] dict. Got help you if you want to dump your structured logging/data into splunk.