Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. #include <asl.h>
  2.  
  3. int main(void)
  4. {
  5. asl_object_t m = asl_new(ASL_TYPE_MSG);
  6. asl_set(m, ASL_KEY_SENDER, "hello");
  7. asl_set(m, ASL_KEY_FACILITY, "hello");
  8. asl_log(NULL, m, ASL_LEVEL_WARNING, "HelloMessage asl!");
  9. asl_free(m);
  10.  
  11. return 0;
  12. }
  13.  
  14. ? [T hello] claim only
  15. * store_dir /var/log/hello ttl=30
  16.  
  17. > /var/log/hello.log extern mode=0750
  18. ? [= Facility hello] claim
  19. ? [= Facility hello] file /var/log/hello.log fmt=raw rotate=local compress ttl=3
  20.  
  21. ? [= Facility hello] claim
  22. ? [= Facility hello] file hello.log fmt=raw rotate=local compress ttl=3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement