Monobjc / monobjc

Git Repository for the Monobjc Project
http://www.monobjc.net/
17 stars 3 forks source link

Log using NSLog. #399

Closed aarononeal closed 11 years ago

aarononeal commented 11 years ago

By logging with NSLog instead of printf, output is also written to the system console. This is useful for debugging, especially on a remote device (e.g. iOS).

aarononeal commented 11 years ago

The current implementation allocates a new NSString which interferes with the dealloc interceptor. One fix would be to use printf instead of NSLog during dealloc, but there are edge cases to deal with. Closing pull request for now.

letiemble commented 11 years ago

I have implemented a logging solution based on the ASL in the following pull request: https://github.com/Monobjc/monobjc/pull/404. Can you give it a try and let me know if this works on iOS ?