Macro for ASL Log like NSLog


/ Published in: Objective C

Macro to give an asl_log-like NSLog.


Copy this code and paste it in your HTML
  1. #define asl_NSLog(client, msg, level, format, ...) asl_log(client, msg, level, "%s", [[NSString stringWithFormat:format, ##__VA_ARGS__] UTF8String])

URL: http://boredzo.org/blog/archives/2008-01-20/asl-logging

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.