+#if 1 //TARGET_OS_EMBEDDED
+#define IPSECLOGASLMSG(format, args...) plog(ASL_LEVEL_NOTICE, format, ##args);
+#else
+#define IPSECLOGASLMSG(format, args...) do { \
+ aslmsg m = asl_new(ASL_TYPE_MSG); \
+ asl_set(m, ASL_KEY_FACILITY, IPSECASLDOMAIN); \
+ asl_set(m, ASL_KEY_MSG, IPSECASLKEY); \
+ asl_log(NULL, m, ASL_LEVEL_NOTICE, format, ##args); \
+ asl_free(m); \
+ } while(0)
+#endif
+