delba / Log

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

Log messages not being displayed in XCode debug console #29

Closed jakerockland closed 4 years ago

jakerockland commented 6 years ago

Hey @delba, are you still maintaining this library? I am having odd issue now where logs print inconsistently, I can't tell if this is an issue newly introduced in XCode 10, or if it happened due to me updating iOS. Have you seen anything similar in any of your projects?

ming-chu commented 6 years ago

hi @jakerockland please checkout the pull request PR-28

And here is why cannot show to the console: That's because of the level comparison failed in log function (level >= minLevel always false), fix it by using raw values type "Int" for "Level"

You may use it temporary before @delba merge the PR pod 'Log', :git => 'https://github.com/ming-chu/Log.git', :commit => '9d47ba104449961dd522a102c91e22ffc7df28d3'

Note that you may need to clean the Build folder (shift + Cmd + K) and build again after you updated the pod, hope it can help :)

jakerockland commented 6 years ago

Awesome, will test this soon @ming-chu, thank you so much!

delba commented 4 years ago

Hi @jakerockland , the project has been updated to the latest Swift version, it should fix the issue. See this commit https://github.com/delba/Log/commit/4823cdd86208042a52d53ab87e5c177aac652512