delba / Log

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

For UIViewController,as property init,crash #23

Closed gityoung closed 4 years ago

gityoung commented 7 years ago

I define a global variable as property in the UIViewController ,Crashed when use in Closures,Crash reason unexpectedly found nil while unwrapping an Optional value in Formatters.swift -226

delba commented 4 years ago

Hi @gityoung, the project has been updated to the latest Swift version and it should fix this issue. See this commit https://github.com/delba/Log/commit/13e60e3f2597a6d8a3c2bfe9365751cd9d3ceddf