comparison src/core/ngx_log.h @ 7744:f18db38a9826

Core: "-e" command line option. When installing or running from a non-root user it is sometimes required to override default, compiled in error log path. There was no way to do this without rebuilding the binary (ticket #147). This patch introduced "-e" command line option which allows one to override compiled in error log path.
author Igor Ippolitov <iippolitov@nginx.com>
date Thu, 19 Nov 2020 16:59:00 +0000
parents 4b420f9c4c5d
children
comparison
equal deleted inserted replaced
7743:4b1299b1856a 7744:f18db38a9826
226 226
227 #endif 227 #endif
228 228
229 /*********************************/ 229 /*********************************/
230 230
231 ngx_log_t *ngx_log_init(u_char *prefix); 231 ngx_log_t *ngx_log_init(u_char *prefix, u_char *error_log);
232 void ngx_cdecl ngx_log_abort(ngx_err_t err, const char *fmt, ...); 232 void ngx_cdecl ngx_log_abort(ngx_err_t err, const char *fmt, ...);
233 void ngx_cdecl ngx_log_stderr(ngx_err_t err, const char *fmt, ...); 233 void ngx_cdecl ngx_log_stderr(ngx_err_t err, const char *fmt, ...);
234 u_char *ngx_log_errno(u_char *buf, u_char *last, ngx_err_t err); 234 u_char *ngx_log_errno(u_char *buf, u_char *last, ngx_err_t err);
235 ngx_int_t ngx_log_open_default(ngx_cycle_t *cycle); 235 ngx_int_t ngx_log_open_default(ngx_cycle_t *cycle);
236 ngx_int_t ngx_log_redirect_stderr(ngx_cycle_t *cycle); 236 ngx_int_t ngx_log_redirect_stderr(ngx_cycle_t *cycle);