Home
last modified time | relevance | path

Searched refs:syslog (Results 1 - 25 of 95) sorted by relevance

1234

/third_party/python/Lib/test/
H A Dtest_syslog.py2 syslog = import_helper.import_module("syslog") #skip if not supported variable
16 syslog.closelog()
19 syslog.openlog('python')
21 self.assertRaises(UnicodeEncodeError, syslog.openlog, '\uD800')
24 syslog.openlog('python')
25 syslog.syslog('test message from python test_syslog')
26 syslog.syslog(syslo
[all...]
H A Daudit-tests.py423 import syslog namespace
426 if event.startswith("syslog."):
430 syslog.openlog('python')
431 syslog.syslog('test')
432 syslog.setlogmask(syslog.LOG_DEBUG)
433 syslog.closelog()
435 syslog.syslog('test
[all...]
/third_party/ltp/testcases/kernel/syscalls/syslog/
H A Dsyslogtst.c28 #include <syslog.h>
41 int exit_flag = 0; /* used for syslog test case 6. */ in main()
91 * Send syslog messages according to the case number, which in main()
96 syslog(LOG_MAIL | LOG_INFO, "syslogtst: mail info test."); in main()
101 syslog(LOG_MAIL | LOG_EMERG, in main()
105 syslog(LOG_MAIL | LOG_ALERT, in main()
109 syslog(LOG_MAIL | LOG_CRIT, in main()
113 syslog(LOG_MAIL | LOG_ERR, "syslogtst: mail err test."); in main()
116 syslog(LOG_MAIL | LOG_WARNING, in main()
120 syslog(LOG_MAI in main()
[all...]
H A Dsyslog0424 # with syslog-ng
33 . syslog-lib.sh || exit 1
41 /etc/syslog.conf|/etc/rsyslog.conf)
46 /etc/syslog-ng/syslog-ng.conf)
H A Dsyslog0624 # with syslog-ng on SLES
37 . syslog-lib.sh || exit 1
41 tst_resm TINFO "syslog: Testing the log option: LOG_NDELAY..."
46 /etc/syslog.conf|/etc/rsyslog.conf)
51 /etc/syslog-ng/syslog-ng.conf)
54 echo "destination syslog-messages { file(\"/var/log/messages\");};" >> $CONFIG_FILE
55 echo "log { source(src); filter(f_syslog_user); destination(syslog-messages);};" >> $CONFIG_FILE
H A Dsyslog0524 # with syslog-ng
29 # o Disable /dev/syslog by moving it to a temporary file #
31 # o Send the syslog message. #
37 . syslog-lib.sh || exit 1
41 tst_resm TINFO "syslog: Testing the log option: LOG_CONS..."
46 /etc/syslog.conf|/etc/rsyslog.conf)
51 /etc/syslog-ng/syslog-ng.conf)
54 echo "destination syslog-messages { file(\"/var/log/messages\");};" >> $CONFIG_FILE
55 echo "log { source(src); filter(f_syslog_user); destination(syslog
[all...]
H A Dsyslog0324 # with syslog-ng on SLES
30 # syslog.conf should contain: #
32 # daemon.info /usr/spool/adm/syslog #
35 . syslog-lib.sh || exit 1
41 /etc/syslog.conf|/etc/rsyslog.conf)
46 /etc/syslog-ng/syslog-ng.conf)
49 echo "# Added for syslog testcase" >> $CONFIG_FILE
51 echo "destination syslog-messages { file(\"/var/log/messages\");};" >> $CONFIG_FILE
52 echo "log { source(src); filter(f_syslog_daemon); destination(syslog
[all...]
H A Dsyslog0123 # with syslog-ng
32 # syslog.conf should contain: #
34 # mail.info /usr/spool/adm/syslog #
37 . syslog-lib.sh || exit 1
46 /etc/syslog.conf|/etc/rsyslog.conf)
52 /etc/syslog-ng/syslog-ng.conf)
57 echo "# Added for syslog testcase" >> $CONFIG_FILE
60 echo "destination syslog-messages { file(\"/var/log/messages\");};" >> $CONFIG_FILE
61 echo "log { source(src); filter(f_syslog); destination(syslog
[all...]
H A Dsyslog0224 # with syslog-ng
29 # created and that will be used as syslog.conf file.
35 . syslog-lib.sh || exit 1
48 /etc/syslog.conf)
59 /etc/syslog-ng/syslog-ng.conf)
62 echo "destination syslog-$level { file(\"$MAILLOG\"); };" >> $CONFIG_FILE
63 echo "log { source(src); filter(f_syslog_$level); destination(syslog-$level); };" >> $CONFIG_FILE;;
70 # This check is neccessary for syslog-ng because $MAILLOG is
107 tst_resm TINFO "created and that will be used as syslog
[all...]
H A Dsyslog1023 # with syslog-ng
36 . syslog-lib.sh || exit 1
40 tst_resm TINFO "syslog: Testing setlogmask() with LOG_MASK macro..."
44 /etc/syslog.conf|/etc/rsyslog.conf)
49 /etc/syslog-ng/syslog-ng.conf)
H A Dsyslog0924 # with syslog-ng
35 . syslog-lib.sh || exit 1
39 tst_resm TINFO "syslog: Testing setlogmask() with LOG_UPTO macro"
43 /etc/syslog.conf|/etc/rsyslog.conf)
48 /etc/syslog-ng/syslog-ng.conf)
52 echo "destination syslog-messages { file(\"/var/log/messages\");};" >> $CONFIG_FILE
53 echo "log { source(src); filter(f_syslog_debug); destination(syslog-messages);};" >> $CONFIG_FILE
H A Dsyslog0724 # with syslog-ng
31 # o For syslog-ng the priority is set to all #
32 # because of the format of syslog-ng.conf #
35 # o Send syslog messages at all levels and see whether #
39 . syslog-lib.sh || exit 1
43 tst_resm TINFO "testing syslog priorities ..."
45 # Adds some clarification of log message when syslog-ng is used
46 if [ $CONFIG_FILE = /etc/syslog.conf ]; then
52 tst_resm TINFO " o Send syslog messages at all levels and see whether"
57 /etc/syslog
[all...]
H A Dsyslog0824 # with syslog-ng
31 # Don't know how to send kernel messages from syslog() #
37 . syslog-lib.sh || exit 1
53 /etc/syslog.conf|/etc/rsyslog.conf)
59 /etc/syslog-ng/syslog-ng.conf)
62 echo "destination syslog-messages { file(\"/var/log/messages\"); };" >> $CONFIG_FILE
63 echo "destination syslog-mail { file(\"/var/log/maillog\");};" >> $CONFIG_FILE
64 echo "log { source(src); filter(f_syslog-$facility); destination(syslog-mail); };" >> $CONFIG_FILE
65 echo "log { source(src); filter(f_syslog-$facility); destination(syslog
[all...]
H A Dsyslog11.c10 * Verify that, syslog(2) is successful for type ranging from 1 to 8
28 #define syslog(arg1, arg2, arg3) tst_syscall(__NR_syslog, arg1, arg2, arg3) macro
54 TST_EXP_PASS(syslog(tc->type, tc->buf, tc->len), in run()
55 "syslog() with %s", tc->desc); in run()
H A Dsyslog12.c11 * Verify that syslog(2) system call fails with appropriate error number:
29 #define syslog(arg1, arg2, arg3) tst_syscall(__NR_syslog, arg1, arg2, arg3) macro
72 TST_EXP_FAIL(syslog(tc->type, tc->buf, tc->len), tc->exp_errno, in run()
73 "syslog() with %s", tc->desc); in run()
/third_party/musl/libc-test/src/functionalext/supplement/misc/
H A Dsyslog.c17 #include <syslog.h>
30 syslog(LOG_INFO, "syslog"); in syslog_0100()
43 syslog(INVALID_LEVEL, "syslog"); in syslog_0200()
/third_party/toybox/toys/pending/
H A Dklogd.c56 syslog(LOG_NOTICE,"KLOGD: Daemon exiting......"); in handle_signal()
74 syslog(LOG_NOTICE, "KLOGD: started with Kernel ring buffer as log source\n"); in klogd_main()
78 syslog(LOG_NOTICE, "KLOGD: started with /proc/kmsg as log source\n"); in klogd_main()
101 if (*line_start == '<') { //we have new line to syslog in klogd_main()
106 if (*line_start) syslog(prio, "%s", line_start); in klogd_main()
/third_party/node/deps/openssl/openssl/apps/lib/
H A Dhttp_server.c51 syslog(level, "%.*s", ilen, str); in print_syslog()
70 syslog(level, "%s", buf); in log_message()
125 syslog(LOG_ERR, "fatal: error detaching from parent process group: %s", in spawn_loop()
153 syslog(LOG_ERR, "fatal: internal error: " in spawn_loop()
160 syslog(LOG_WARNING, "child process: %ld, exit status: %d", in spawn_loop()
163 syslog(LOG_WARNING, "child process: %ld, term signal %d%s", in spawn_loop()
173 syslog(LOG_ERR, "fatal: waitpid(): %s", strerror(errno)); in spawn_loop()
192 syslog(LOG_ERR, "fatal: RAND_poll() failed"); in spawn_loop()
205 syslog(LOG_ERR, "fatal: internal error: no free child slots"); in spawn_loop()
213 syslog(LOG_INF in spawn_loop()
[all...]
/third_party/openssl/apps/lib/
H A Dhttp_server.c51 syslog(level, "%.*s", ilen, str); in print_syslog()
70 syslog(level, "%s", buf); in log_message()
125 syslog(LOG_ERR, "fatal: error detaching from parent process group: %s", in spawn_loop()
153 syslog(LOG_ERR, "fatal: internal error: " in spawn_loop()
160 syslog(LOG_WARNING, "child process: %ld, exit status: %d", in spawn_loop()
163 syslog(LOG_WARNING, "child process: %ld, term signal %d%s", in spawn_loop()
173 syslog(LOG_ERR, "fatal: waitpid(): %s", strerror(errno)); in spawn_loop()
192 syslog(LOG_ERR, "fatal: RAND_poll() failed"); in spawn_loop()
205 syslog(LOG_ERR, "fatal: internal error: no free child slots"); in spawn_loop()
213 syslog(LOG_INF in spawn_loop()
[all...]
/third_party/selinux/libselinux/utils/
H A Dtogglesebool.c7 #include <syslog.h>
80 /* syslog all the changes */ in main()
84 syslog(LOG_NOTICE, in main()
88 syslog(LOG_NOTICE, in main()
/third_party/musl/libc-test/src/functionalext/supplement/misc/misc_gtest/
H A Dmisc_closelog_test.cpp3 #include <syslog.h>
20 syslog(LOG_INFO, "This is a test log message."); in HWTEST_F()
/third_party/nghttp2/src/
H A Dshrpx_log.cc28 # include <syslog.h>
169 (lgconf->errorlog_fd == -1 && !errorconf.syslog)) { in ~Log()
173 if (errorconf.syslog) { in ~Log()
175 syslog(severity_to_syslog_level(severity_), "[%s] %.*s", in ~Log()
179 syslog(severity_to_syslog_level(severity_), "[%s] %.*s (%s:%d)", in ~Log()
582 if (lgconf->accesslog_fd == -1 && !accessconf.syslog) { in upstream_accesslog()
859 if (accessconf.syslog) { in upstream_accesslog()
860 syslog(LOG_INFO, "%s", buf.data()); in upstream_accesslog()
882 if (!accessconf.syslog && !accessconf.file.empty()) { in reopen_log_files()
891 if (!errorconf.syslog in reopen_log_files()
[all...]
/third_party/NuttX/include/
H A Dsyslog.h2 * include/syslog.h
51 * delayed until syslog() is called. (This is the default,
133 * calls to syslog(). The ident argument is a string that is prepended to
142 * sent to the logging facility. The syslog() function ensures that
151 * LOG_ODELAY - Delay open until syslog() is called.
156 * termination using SIGCHLD, since syslog() may otherwise block
163 * It is not necessary to call openlog() prior to calling syslog().
175 * The openlog() and syslog() functions may allocate a file descriptor.
177 * by previous calls to openlog() or syslog().
186 * Name: syslog an
[all...]
/third_party/musl/libc-test/src/api/
H A Dsyslog.c1 #include <syslog.h>
41 {void(*p)(int,const char*,...) = syslog;} in f()
/third_party/alsa-utils/alsactl/
H A Dalsactl.c30 #include <syslog.h>
102 { 's', "syslog", "use syslog for messages" },
425 /* when running in background, use syslog for reports */ in main()
429 syslog(LOG_INFO, "alsactl " SND_UTIL_VERSION_STR " daemon cannot be started: %s", strerror(errno)); in main()
441 syslog(LOG_INFO, "alsactl " SND_UTIL_VERSION_STR " daemon started"); in main()
486 syslog(LOG_INFO, "alsactl daemon stopped"); in main()

Completed in 7 milliseconds

1234