delba / Log

An extensible logging framework for Swift
MIT License
830 stars 63 forks source link

Possibility to attach log handler #9

Closed bennol closed 8 years ago

bennol commented 8 years ago

I am wondering whether there is a built-in mechanism for attaching additional code that handles a log. I've recently started using a cloud logging framework and would like to attach the frameworks logging call to all my existing Log.*("...") calls. Is there an intended attachment point that I have overseen or is there no option without modifying your code?

Thanks in advance Benno

delba commented 8 years ago

Hi @bennol , did you try subclassing Logger ?

bennol commented 8 years ago

@delba Thanks for your response - That's what I eventually did.