nginx-0.0.1-2003-07-02-18:41:17 import
diff --git a/src/core/ngx_log.c b/src/core/ngx_log.c
index d4f3df3..51bae3d 100644
--- a/src/core/ngx_log.c
+++ b/src/core/ngx_log.c
@@ -246,6 +246,17 @@
}
+ngx_log_t *ngx_log_create_errlog(ngx_cycle_t *cycle)
+{
+ ngx_log_t *log;
+
+ ngx_test_null(log, ngx_pcalloc(cycle->pool, sizeof(ngx_log_t)), NULL);
+ ngx_test_null(log->file, ngx_push_array(&cycle->open_files), NULL);
+
+ return log;
+}
+
+
char *ngx_log_set_errlog(ngx_conf_t *cf, ngx_command_t *cmd, ngx_log_t *log)
{
int len;