I wanted to add a prefix to all my logs. I tried to subclass XCGLogger
to override logln(...)
or debug(...)
functions.
But I am facing two difficulties while using this
- Compiler always give me error (see picture).
- I don't know how to customize the given log message as the parameter is a closure.
Thanks