Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <asl.h>
- int main(void)
- {
- asl_object_t m = asl_new(ASL_TYPE_MSG);
- asl_set(m, ASL_KEY_SENDER, "hello");
- asl_set(m, ASL_KEY_FACILITY, "hello");
- asl_log(NULL, m, ASL_LEVEL_WARNING, "HelloMessage asl!");
- asl_free(m);
- return 0;
- }
- ? [T hello] claim only
- * store_dir /var/log/hello ttl=30
- > /var/log/hello.log extern mode=0750
- ? [= Facility hello] claim
- ? [= Facility hello] file /var/log/hello.log fmt=raw rotate=local compress ttl=3
- ? [= Facility hello] claim
- ? [= Facility hello] file hello.log fmt=raw rotate=local compress ttl=3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement