aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_log.c
Commit message (Collapse)AuthorAge
* Core: "-e" command line option.Igor Ippolitov2020-11-19
| | | | | | | | | 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.
* Removed the prototype mysql module.Ruslan Ermilov2016-03-31
|
* Style.Ruslan Ermilov2016-03-30
|
* Core: properly initialized written bytes counter in memory log.Valentin Bartenev2015-05-19
|
* Stream: port from NGINX+.Ruslan Ermilov2015-04-20
|
* Core: added cyclic memory buffer support for error_log.Valentin Bartenev2015-03-19
| | | | | | | | | | | | | | | | | | | | Example of usage: error_log memory:16m debug; This allows to configure debug logging with minimum impact on performance. It's especially useful when rare crashes are experienced under high load. The log can be extracted from a coredump using the following gdb script: set $log = ngx_cycle->log while $log->writer != ngx_log_memory_writer set $log = $log->next end set $buf = (ngx_log_memory_buf_t *) $log->wdata dump binary memory debug_log.txt $buf->start $buf->end
* Log: use ngx_cpymem() in a couple of places, no functional changes.Valentin Bartenev2015-03-04
|
* Core: added disk_full_time checks to error log.Maxim Dounin2015-01-13
|
* Core: fixed default log initialization.Vladimir Homutov2014-07-24
| | | | | The ngx_log_insert() function may invalidate pointer passed to it, so make sure to don't use it after the ngx_log_insert() call.
* Added syslog support for error_log and access_log directives.Vladimir Homutov2014-05-12
|
* Core: consolidated log-related code.Vladimir Homutov2013-06-28
| | | | | The stderr redirection code is moved to ngx_log_redirect_stderr(). The opening of the default log code is moved to ngx_log_open_default().
* Core: support several "error_log" directives.Vladimir Homutov2013-06-20
| | | | | | | | | | | | When several "error_log" directives are specified in the same configuration block, logs are written to all files with a matching log level. All logs are stored in the singly-linked list that is sorted by log level in the descending order. Specific debug levels (NGX_LOG_DEBUG_HTTP,EVENT, etc.) are not supported if several "error_log" directives are specified. In this case all logs will use debug level that has largest absolute value.
* Core: moved initialization of log level.Vladimir Homutov2013-06-13
| | | | | | The cycle->new_log->log_level should only be initialized by ngx_init_cycle() if no error logs were found in the configuration. This move allows to get rid of extra initialization in ngx_error_log().
* Core: fixed handling of "stderr" in error_log.Vladimir Homutov2013-06-04
| | | | | | If "stderr" was specified in one of the "error_log" directives, stderr is not redirected to the first error_log on startup, configuration reload, and reopening log files.
* Copyright updated.Maxim Konovalov2012-01-18
|
* Complain on invalid log levels.Maxim Dounin2011-08-18
| | | | | | | | | | | | | Previously only first log level was required to be correct, while error_log directive in fact accepts list of levels (e.g. one may specify "error_log ... debug_core debug_http;"). This resulted in (avoidable) wierd behaviour on missing semicolon after error_log directive, e.g. error_log /path/to/log info index index.php; silently skipped index directive and it's arguments (trying to interpret them as log levels without checking to be correct).
* remove semicolon, because it is already in "nginx: " prefixIgor Sysoev2011-02-21
|
* remove semicolon, because it is already in "nginx: " prefixIgor Sysoev2010-12-11
|
* add "nginx: " prefix when logging to the stderrIgor Sysoev2010-11-29
|
* use copied strerror() messages and autoconfigured sys_nerr valueIgor Sysoev2010-11-25
|
* ngx_str_set() and ngx_str_null()Igor Sysoev2010-05-14
|
* *) refactor error_log processing: listen socket log might inherit built-inIgor Sysoev2009-04-30
| | | | | | error_log with zero level, and r2447, r2466, r2467 were not enough *) remove bogus "stderr" level *) some functions and fields renames
* fix building by BCC if NGX_PREFIX is definedIgor Sysoev2009-04-29
|
* introduce ngx_write_console() to support OEM code pagesIgor Sysoev2009-04-28
|
* ngx_log_errno()Igor Sysoev2009-04-27
|
* use ngx_vslprintf(), ngx_slprintf()Igor Sysoev2009-04-27
|
* -p and --prefix=Igor Sysoev2009-04-27
|
* change ngx_log_abort() interfaceIgor Sysoev2009-04-24
|
* style fix: (void)Igor Sysoev2009-04-24
|
* change ngx_log_create_errlog() interfaceIgor Sysoev2009-04-24
|
* issue start up errors and warning on both stderr and error_logIgor Sysoev2009-04-23
|
* style fix: remove trailing spaces introduced in the previous commitIgor Sysoev2009-04-23
|
* use ngx_str_t for error levelsIgor Sysoev2009-04-23
|
* style fix: remove trailing spacesIgor Sysoev2009-04-21
|
* fix r2731 for Win32Igor Sysoev2009-04-21
|
* Win32 master/workers modelIgor Sysoev2009-04-20
|
* show -t results on stderrIgor Sysoev2009-04-19
|
* fix building on platforms which have no atomic operations support,Igor Sysoev2009-04-17
| | | | the bug was introduced in r2564
* Win32 appends synchronized if only FILE_APPEND_DATA and SYNCHRONIZE are setIgor Sysoev2009-03-31
| | | | | without any other flags. On the other hand, Unix requires at least the write flag to be set together with O_APPEND.
* win32 ngx_open_file() supports utf8 names and NGX_FILE_APPENDIgor Sysoev2009-03-30
|
* small optimization: " == NGX_ERROR" > " != NGX_OK"Igor Sysoev2009-02-24
|
* set the error level as default http error_log levelIgor Sysoev2009-01-16
|
* compact win32 errno loggingIgor Sysoev2008-12-09
|
* compatibility with glibc 2.3, warn_unused_result attribute for write()Igor Sysoev2008-11-11
|
* --sysconfdir=DIRIgor Sysoev2007-07-29
|
* Many changes:Igor Sysoev2007-03-19
| | | | | | | *) rename imap to mail, sort pop3/imap functions *) smtp auth support *) pop3 starttls only *) fix segfault if cram-md5 was used without apop
* ngx_open_file(name, access, create) > ngx_open_file(name, mode, create, access)Igor Sysoev2007-01-18
|
* fix log messageIgor Sysoev2007-01-18
|
* ngx_sprintf() has implicit limit of 65536 bytes so on Linux/ppc64Igor Sysoev2006-12-19
| | | | | in 32-bit mode the errstr is somewhere at 0xffffd680, the "last" overflows and ngx_vsnprintf() does not print at all
* slab allocator in shared memoryIgor Sysoev2006-11-20
|