Home
last modified time | relevance | path

Searched refs:log (Results 1 – 25 of 107) sorted by relevance

12345

/unit/src/
H A Dnxt_log.c53 old = thr->log; in nxt_log_set_ctx()
55 log->level = old->level; in nxt_log_set_ctx()
56 log->handler = old->handler; in nxt_log_set_ctx()
57 log->ctx_handler = handler; in nxt_log_set_ctx()
58 log->ctx = ctx; in nxt_log_set_ctx()
60 thr->log = log; in nxt_log_set_ctx()
67 nxt_log_handler(nxt_uint_t level, nxt_log_t *log, const char *fmt, ...) in nxt_log_handler() argument
89 p = nxt_sprintf(p, end, (log->ident != 0) ? "[%V] *%D " : "[%V] ", in nxt_log_handler()
90 &nxt_log_levels[level], log->ident); in nxt_log_handler()
96 if (level != NXT_LOG_DEBUG && log->ctx_handler != NULL) { in nxt_log_handler()
[all …]
H A Dnxt_listen_socket.c51 old = thr->log; in nxt_listen_socket_create()
52 log = *thr->log; in nxt_listen_socket_create()
54 log.ctx = sa; in nxt_listen_socket_create()
55 thr->log = &log; in nxt_listen_socket_create()
190 thr->log = old; in nxt_listen_socket_create()
212 thr->log = old; in nxt_listen_socket_create()
228 old = thr->log; in nxt_listen_socket_update()
229 log = *thr->log; in nxt_listen_socket_update()
232 thr->log = &log; in nxt_listen_socket_update()
242 thr->log = old; in nxt_listen_socket_update()
[all …]
H A Dnxt_log.h22 typedef void nxt_cdecl (*nxt_log_handler_t)(nxt_uint_t level, nxt_log_t *log,
37 NXT_EXPORT nxt_log_t *nxt_log_set_ctx(nxt_log_t *log,
40 NXT_EXPORT void nxt_cdecl nxt_log_handler(nxt_uint_t level, nxt_log_t *log,
44 #define nxt_log_level_enough(log, level) \ argument
45 ((log)->level >= (level))
50 nxt_log_t *_log = (task)->log; \
58 nxt_log_t *_log = (task)->log; \
69 nxt_log_t *_log = (task)->log; \
100 nxt_log_t *_log = (task)->log; \
H A Dnxt_thread_log.h15 nxt_log_alert(_thr->log, __VA_ARGS__); \
24 nxt_log_error(_level, _thr->log, __VA_ARGS__); \
35 nxt_log_debug(_thr->log, __VA_ARGS__); \
57 return thr->log; in nxt_thread_log()
H A Dnxt_conn.c57 c->socket.log = &c->log; in nxt_conn_create()
58 c->log = *task->log; in nxt_conn_create()
62 while (c->log.ident == 0) { in nxt_conn_create()
63 c->log.ident = nxt_task_next_ident(); in nxt_conn_create()
70 c->task.log = &c->log; in nxt_conn_create()
71 c->task.ident = c->log.ident; in nxt_conn_create()
86 nxt_log_debug(&c->log, "connections: %uD", thr->engine->connections); in nxt_conn_create()
H A Dnxt_thread_cond.c70 nxt_log_debug(thr->log, "pthread_cond_wait(%p) enter", cond); in nxt_thread_cond_wait()
77 nxt_log_debug(thr->log, "pthread_cond_wait(%p) exit", cond); in nxt_thread_cond_wait()
81 nxt_log_alert(thr->log, "pthread_cond_wait() failed %E", err); in nxt_thread_cond_wait()
84 nxt_log_debug(thr->log, "pthread_cond_timedwait(%p, %N) enter", in nxt_thread_cond_wait()
98 nxt_log_debug(thr->log, "pthread_cond_timedwait(%p) exit: %d", in nxt_thread_cond_wait()
103 nxt_log_alert(thr->log, "pthread_cond_timedwait() failed %E", err); in nxt_thread_cond_wait()
H A Dnxt_semaphore.c87 nxt_log_debug(thr->log, "sem_wait(%p) enter", sem); in nxt_sem_wait()
104 nxt_log_error(NXT_LOG_INFO, thr->log, "sem_wait(%p) failed %E", in nxt_sem_wait()
109 nxt_log_alert(thr->log, "sem_wait(%p) failed %E", sem, err); in nxt_sem_wait()
117 nxt_log_debug(thr->log, "sem_trywait(%p) enter", sem); in nxt_sem_wait()
130 nxt_log_debug(thr->log, "sem_timedwait(%p, %N) enter", sem, timeout); in nxt_sem_wait()
152 nxt_log_debug(thr->log, "sem_timedwait(%p) exit: %d", sem, err); in nxt_sem_wait()
156 nxt_log_error(NXT_LOG_INFO, thr->log, "sem_timedwait(%p) failed %E", in nxt_sem_wait()
161 nxt_log_alert(thr->log, "sem_timedwait(%p) failed %E", sem, err); in nxt_sem_wait()
H A Dnxt_polarssl.c24 static void nxt_polarssl_log_error(nxt_uint_t level, nxt_log_t *log, int err,
52 nxt_polarssl_log_error(NXT_LOG_ALERT, thr->log, n, "ssl_init() failed"); in nxt_polarssl_server_init()
63 nxt_polarssl_log_error(NXT_LOG_ALERT, thr->log, n, in nxt_polarssl_server_init()
73 nxt_polarssl_log_error(NXT_LOG_ALERT, thr->log, n, in nxt_polarssl_server_init()
101 nxt_polarssl_log_error(nxt_uint_t level, nxt_log_t *log, int err, in nxt_polarssl_log_error() argument
117 nxt_log_error(level, log, "%*s)", p - msg, msg); in nxt_polarssl_log_error()
H A Dnxt_app_log.c20 nxt_log_time_handler(nxt_uint_t level, nxt_log_t *log, const char *fmt, ...) in nxt_log_time_handler() argument
35 time_cache = (log->level != NXT_LOG_DEBUG) ? &nxt_log_error_time_cache: in nxt_log_time_handler()
67 if (log->ident != 0) { in nxt_log_time_handler()
68 p = nxt_sprintf(p, end, "*%D ", log->ident); in nxt_log_time_handler()
75 if (level != NXT_LOG_DEBUG && log->ctx_handler != NULL) { in nxt_log_time_handler()
76 p = log->ctx_handler(log->ctx, p, end); in nxt_log_time_handler()
H A Dnxt_cyassl.c90 nxt_cyassl_log_error(NXT_LOG_ALERT, thr->log, err, in nxt_cyassl_start()
121 nxt_cyassl_log_error(NXT_LOG_ALERT, thr->log, 0, in nxt_cyassl_server_init()
133 nxt_cyassl_log_error(NXT_LOG_ALERT, thr->log, err, in nxt_cyassl_server_init()
183 nxt_log_debug(c->socket.log, "cyassl conn init"); in nxt_cyassl_conn_init()
351 nxt_log_debug(thr->log, "cyassl conn read"); in nxt_cyassl_conn_io_read()
400 nxt_log_debug(thr->log, "cyassl conn write chunk"); in nxt_cyassl_conn_io_write_chunk()
416 nxt_log_debug(c->socket.log, "cyassl send"); in nxt_cyassl_conn_io_send()
458 nxt_log_debug(thr->log, "cyassl conn shutdown"); in nxt_cyassl_conn_io_shutdown()
548 if (nxt_log_level_enough(c->socket.log, level)) { in nxt_cyassl_conn_error()
592 if (nxt_log_level_enough(log, level)) { in nxt_cyassl_log_error()
[all …]
H A Dnxt_gnutls.c129 nxt_log_debug(thr->log, "gnutls time"); in nxt_gnutls_time()
170 nxt_gnutls_log_error(NXT_LOG_ALERT, thr->log, ret, in nxt_gnutls_server_init()
181 nxt_gnutls_log_error(NXT_LOG_ALERT, thr->log, ret, in nxt_gnutls_server_init()
263 nxt_log_debug(c->socket.log, "gnutls conn init"); in nxt_gnutls_conn_init()
444 nxt_log_debug(thr->log, "gnutls_handshake(): %d", err); in nxt_gnutls_conn_handshake()
480 nxt_log_debug(thr->log, "gnutls conn read"); in nxt_gnutls_conn_io_read()
531 nxt_log_debug(thr->log, "gnutls conn write chunk"); in nxt_gnutls_conn_io_write_chunk()
588 nxt_log_debug(c->socket.log, "gnutls conn shutdown"); in nxt_gnutls_conn_io_shutdown()
602 nxt_log_debug(c->socket.log, "gnutls_bye(%d, %d): %d", in nxt_gnutls_conn_io_shutdown()
690 if (nxt_log_level_enough(c->socket.log, level)) { in nxt_gnutls_conn_log_error()
[all …]
H A Dnxt_thread_mutex.c155 nxt_log_debug(thr->log, "pthread_mutex_trylock(%p) enter", mtx); in nxt_thread_mutex_trylock()
163 nxt_log_debug(thr->log, "pthread_mutex_trylock(%p) failed", mtx); in nxt_thread_mutex_trylock()
185 nxt_log_debug(thr->log, "pthread_mutex_unlock(%p) exit", mtx); in nxt_thread_mutex_unlock()
189 nxt_log_alert(thr->log, "pthread_mutex_unlock() failed %E", err); in nxt_thread_mutex_unlock()
/unit/test/unit/
H A Dhttp.py130 def log_out(self, log, encoding): argument
133 log = self.log_truncate(log)
137 print(log)
139 def log_in(self, log): argument
142 log = self.log_truncate(log)
144 print(log)
146 print(log.encode())
149 len_log = len(log)
151 log = log[:limit]
157 log = log + appendix
[all …]
/unit/pkg/rpm/rpmbuild/SOURCES/
H A Dunit.service10 # Environment="UNITD_OPTIONS=--log /var/log/unit/unit.log --pid /var/run/unit/unit.pid"
19 Environment="UNITD_OPTIONS=--log /var/log/unit/unit.log --pid /var/run/unit/unit.pid"
H A Dunit-debug.service10 # Environment="UNITD_OPTIONS=--log /var/log/unit/unit.log --pid /var/run/unit/unit.pid"
19 Environment="UNITD_OPTIONS=--log /var/log/unit/unit.log --pid /var/run/unit/unit.pid"
/unit/pkg/deb/debian/
H A Dunit.default1 DAEMON_ARGS="--log /var/log/unit.log --pid /var/run/unit.pid"
/unit/test/
H A Dtest_usr1.py5 from unit.log import Log
15 log = 'access.log'
17 log_path = temp_dir + '/' + log
42 self.wait_for_record(r'"GET /usr1 HTTP/1.1" 200 0 "-" "-"', log)
79 log = unit_log.read()
85 unit_log.write(log)
H A Dconftest.py25 from unit.log import Log
187 log = f.read()
196 _print_log(log)
304 log = f.read()
314 _clear_conf(unit['temp_dir'] + '/control.unit.sock', log=log)
341 _check_fds(log=log)
350 _print_log(log)
353 _print_log(log)
360 _check_alerts(log=log)
481 if log is None:
[all …]
/unit/src/test/
H A Dnxt_utf8_file_name_test.c77 task.log = thr->log; in nxt_utf8_file_name_test()
84 nxt_log_alert(thr->log, "nxt_utf8_encode(%05uxD) failed", uc); in nxt_utf8_file_name_test()
94 nxt_log_alert(thr->log, "nxt_utf8_lowcase(%05uxD) failed: %05uxD", in nxt_utf8_file_name_test()
106 nxt_log_alert(thr->log, "nxt_utf8_encode(%05uxD) failed", lc); in nxt_utf8_file_name_test()
133 nxt_log_alert(thr->log, "nxt_file_read() mismatch"); in nxt_utf8_file_name_test()
146 nxt_log_error(NXT_LOG_NOTICE, thr->log, "utf8 file name test passed"); in nxt_utf8_file_name_test()
H A Dnxt_gmtime_test.c33 nxt_log_error(NXT_LOG_NOTICE, thr->log, "gmtime test started"); in nxt_gmtime_test()
46 nxt_log_alert(thr->log, in nxt_gmtime_test()
65 nxt_log_error(NXT_LOG_NOTICE, thr->log, "nxt_gmtime(): %0.1fns", in nxt_gmtime_test()
79 nxt_log_error(NXT_LOG_NOTICE, thr->log, "gmtime(): %0.1fns", in nxt_gmtime_test()
82 nxt_log_error(NXT_LOG_NOTICE, thr->log, "gmtime test passed"); in nxt_gmtime_test()
H A Dnxt_lvlhsh_test.c143 nxt_log_error(NXT_LOG_NOTICE, thr->log, in nxt_lvlhsh_test()
148 nxt_log_error(NXT_LOG_NOTICE, thr->log, in nxt_lvlhsh_test()
161 nxt_log_error(NXT_LOG_NOTICE, thr->log, in nxt_lvlhsh_test()
185 nxt_log_error(NXT_LOG_NOTICE, thr->log, in nxt_lvlhsh_test()
205 nxt_log_error(NXT_LOG_NOTICE, thr->log, in nxt_lvlhsh_test()
211 nxt_log_error(NXT_LOG_NOTICE, thr->log, in nxt_lvlhsh_test()
221 nxt_log_error(NXT_LOG_NOTICE, thr->log, in nxt_lvlhsh_test()
236 nxt_log_error(NXT_LOG_NOTICE, thr->log, in nxt_lvlhsh_test()
242 nxt_log_error(NXT_LOG_NOTICE, thr->log, in nxt_lvlhsh_test()
249 nxt_log_error(NXT_LOG_NOTICE, thr->log, "mem pool is not empty"); in nxt_lvlhsh_test()
[all …]
H A Dnxt_utf8_test.c69 nxt_log_alert(thr->log, in nxt_utf8_overlong()
93 nxt_log_error(NXT_LOG_NOTICE, thr->log, "utf8 test started"); in nxt_utf8_test()
102 nxt_log_alert(thr->log, "nxt_utf8_encode(%05uxD) failed", u); in nxt_utf8_test()
111 nxt_log_alert(thr->log, "nxt_utf8_decode(%05uxD) failed: %05uxD", in nxt_utf8_test()
138 nxt_log_alert(thr->log, in nxt_utf8_test()
185 nxt_log_alert(thr->log, "nxt_utf8_casecmp() failed"); in nxt_utf8_test()
189 nxt_log_error(NXT_LOG_NOTICE, thr->log, "utf8 test passed"); in nxt_utf8_test()
H A Dnxt_http_parse_test.c44 nxt_str_t *request, nxt_log_t *log);
56 nxt_str_t *request, nxt_log_t *log);
601 nxt_log_error(NXT_LOG_NOTICE, thr->log, in nxt_http_parse_test()
662 nxt_log_error(NXT_LOG_NOTICE, thr->log, in nxt_http_parse_test_bench()
707 nxt_log_error(NXT_LOG_NOTICE, thr->log, in nxt_http_parse_test_bench()
726 nxt_log_alert(log, "http parse test case failed:\n" in nxt_http_parse_test_request_line()
739 nxt_log_alert(log, "http parse test case failed:\n" in nxt_http_parse_test_request_line()
749 nxt_log_alert(log, "http parse test case failed:\n" in nxt_http_parse_test_request_line()
757 nxt_log_alert(log, "http parse test case failed:\n" in nxt_http_parse_test_request_line()
766 nxt_log_alert(log, "http parse test case failed:\n" in nxt_http_parse_test_request_line()
[all …]
H A Dnxt_rbtree_test.c36 nxt_log_error(NXT_LOG_NOTICE, thr->log, "rbtree test started: %ui", n); in nxt_rbtree_test()
75 nxt_log_alert(thr->log, "rbtree test failed: %08XD not found", in nxt_rbtree_test()
89 nxt_log_alert(thr->log, "rbtree test failed: %i: %08XD %08XD", in nxt_rbtree_test()
99 nxt_log_alert(thr->log, "rbtree test failed: %ui", i); in nxt_rbtree_test()
112 nxt_log_alert(thr->log, "rbtree test failed: tree is not empty"); in nxt_rbtree_test()
119 nxt_log_alert(thr->log, "rbtree sentinel test failed"); in nxt_rbtree_test()
126 nxt_log_error(NXT_LOG_NOTICE, thr->log, "rbtree test passed %0.3fs", in nxt_rbtree_test()
235 nxt_log_error(NXT_LOG_NOTICE, thr->log, in nxt_rbtree_mb_start()
255 nxt_log_error(NXT_LOG_NOTICE, thr->log, in nxt_rbtree_mb_insert()
273 nxt_log_error(NXT_LOG_NOTICE, thr->log, in nxt_rbtree_mb_delete()
H A Dnxt_mp_test.c28 nxt_log_error(NXT_LOG_NOTICE, thr->log, in nxt_mp_test()
66 nxt_log_error(NXT_LOG_NOTICE, thr->log, in nxt_mp_test()
78 nxt_log_error(NXT_LOG_NOTICE, thr->log, "mem pool is not empty"); in nxt_mp_test()
87 nxt_log_error(NXT_LOG_NOTICE, thr->log, "mem pool test passed"); in nxt_mp_test()

12345