Skip to content

Instantly share code, notes, and snippets.

@Vagabond
Created March 2, 2011 23:29
Show Gist options
  • Save Vagabond/851995 to your computer and use it in GitHub Desktop.
Save Vagabond/851995 to your computer and use it in GitHub Desktop.
include <syslog.h>
int main(int argc, char **argv) {
long logopt, facility;
openlog("test", LOG_PID, LOG_LOCAL0);
syslog(LOG_ERR, "This is a string with some newlines\n and some tabs\t and some carraige returns\r\n \n");
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment