Groonga 3.0.9 Source Code Document
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Macros | Typedefs | Functions | Variables
ngx_log.h File Reference
#include <ngx_config.h>
#include <ngx_core.h>
Include dependency graph for ngx_log.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ngx_log_s

Macros

#define NGX_LOG_STDERR   0
#define NGX_LOG_EMERG   1
#define NGX_LOG_ALERT   2
#define NGX_LOG_CRIT   3
#define NGX_LOG_ERR   4
#define NGX_LOG_WARN   5
#define NGX_LOG_NOTICE   6
#define NGX_LOG_INFO   7
#define NGX_LOG_DEBUG   8
#define NGX_LOG_DEBUG_CORE   0x010
#define NGX_LOG_DEBUG_ALLOC   0x020
#define NGX_LOG_DEBUG_MUTEX   0x040
#define NGX_LOG_DEBUG_EVENT   0x080
#define NGX_LOG_DEBUG_HTTP   0x100
#define NGX_LOG_DEBUG_MAIL   0x200
#define NGX_LOG_DEBUG_MYSQL   0x400
#define NGX_LOG_DEBUG_FIRST   NGX_LOG_DEBUG_CORE
#define NGX_LOG_DEBUG_LAST   NGX_LOG_DEBUG_MYSQL
#define NGX_LOG_DEBUG_CONNECTION   0x80000000
#define NGX_LOG_DEBUG_ALL   0x7ffffff0
#define NGX_MAX_ERROR_STR   2048
#define NGX_HAVE_VARIADIC_MACROS   0
#define ngx_log_debug0(level, log, err, fmt)
#define ngx_log_debug1(level, log, err, fmt, arg1)
#define ngx_log_debug2(level, log, err, fmt, arg1, arg2)
#define ngx_log_debug3(level, log, err, fmt, arg1, arg2, arg3)
#define ngx_log_debug4(level, log, err, fmt, arg1, arg2, arg3, arg4)
#define ngx_log_debug5(level, log, err, fmt, arg1, arg2, arg3, arg4, arg5)
#define ngx_log_debug6(level, log, err, fmt, arg1, arg2, arg3, arg4, arg5, arg6)
#define ngx_log_debug7(level, log, err, fmt, arg1, arg2, arg3, arg4, arg5,arg6, arg7)
#define ngx_log_debug8(level, log, err, fmt, arg1, arg2, arg3, arg4, arg5,arg6, arg7, arg8)

Typedefs

typedef u_char *(* ngx_log_handler_pt )(ngx_log_t *log, u_char *buf, size_t len)

Functions

void ngx_cdecl ngx_log_error (ngx_uint_t level, ngx_log_t *log, ngx_err_t err, const char *fmt,...)
void ngx_log_error_core (ngx_uint_t level, ngx_log_t *log, ngx_err_t err, const char *fmt, va_list args)
void ngx_cdecl ngx_log_debug_core (ngx_log_t *log, ngx_err_t err, const char *fmt,...)
ngx_log_tngx_log_init (u_char *prefix)
ngx_log_tngx_log_create (ngx_cycle_t *cycle, ngx_str_t *name)
char * ngx_log_set_levels (ngx_conf_t *cf, ngx_log_t *log)
void ngx_cdecl ngx_log_abort (ngx_err_t err, const char *fmt,...)
void ngx_cdecl ngx_log_stderr (ngx_err_t err, const char *fmt,...)
u_char * ngx_log_errno (u_char *buf, u_char *last, ngx_err_t err)

Variables

ngx_module_t ngx_errlog_module
ngx_uint_t ngx_use_stderr

Macro Definition Documentation

#define NGX_HAVE_VARIADIC_MACROS   0

Definition at line 106 of file ngx_log.h.

#define NGX_LOG_ALERT   2

Definition at line 18 of file ngx_log.h.

#define NGX_LOG_CRIT   3

Definition at line 19 of file ngx_log.h.

#define NGX_LOG_DEBUG   8

Definition at line 24 of file ngx_log.h.

#define ngx_log_debug0 (   level,
  log,
  err,
  fmt 
)

Definition at line 206 of file ngx_log.h.

#define ngx_log_debug1 (   level,
  log,
  err,
  fmt,
  arg1 
)

Definition at line 207 of file ngx_log.h.

#define ngx_log_debug2 (   level,
  log,
  err,
  fmt,
  arg1,
  arg2 
)

Definition at line 208 of file ngx_log.h.

#define ngx_log_debug3 (   level,
  log,
  err,
  fmt,
  arg1,
  arg2,
  arg3 
)

Definition at line 209 of file ngx_log.h.

#define ngx_log_debug4 (   level,
  log,
  err,
  fmt,
  arg1,
  arg2,
  arg3,
  arg4 
)

Definition at line 210 of file ngx_log.h.

#define ngx_log_debug5 (   level,
  log,
  err,
  fmt,
  arg1,
  arg2,
  arg3,
  arg4,
  arg5 
)

Definition at line 211 of file ngx_log.h.

#define ngx_log_debug6 (   level,
  log,
  err,
  fmt,
  arg1,
  arg2,
  arg3,
  arg4,
  arg5,
  arg6 
)

Definition at line 212 of file ngx_log.h.

#define ngx_log_debug7 (   level,
  log,
  err,
  fmt,
  arg1,
  arg2,
  arg3,
  arg4,
  arg5,
  arg6,
  arg7 
)

Definition at line 213 of file ngx_log.h.

#define ngx_log_debug8 (   level,
  log,
  err,
  fmt,
  arg1,
  arg2,
  arg3,
  arg4,
  arg5,
  arg6,
  arg7,
  arg8 
)

Definition at line 215 of file ngx_log.h.

#define NGX_LOG_DEBUG_ALL   0x7ffffff0

Definition at line 42 of file ngx_log.h.

#define NGX_LOG_DEBUG_ALLOC   0x020

Definition at line 27 of file ngx_log.h.

#define NGX_LOG_DEBUG_CONNECTION   0x80000000

Definition at line 41 of file ngx_log.h.

#define NGX_LOG_DEBUG_CORE   0x010

Definition at line 26 of file ngx_log.h.

#define NGX_LOG_DEBUG_EVENT   0x080

Definition at line 29 of file ngx_log.h.

#define NGX_LOG_DEBUG_FIRST   NGX_LOG_DEBUG_CORE

Definition at line 39 of file ngx_log.h.

#define NGX_LOG_DEBUG_HTTP   0x100

Definition at line 30 of file ngx_log.h.

#define NGX_LOG_DEBUG_LAST   NGX_LOG_DEBUG_MYSQL

Definition at line 40 of file ngx_log.h.

#define NGX_LOG_DEBUG_MAIL   0x200

Definition at line 31 of file ngx_log.h.

#define NGX_LOG_DEBUG_MUTEX   0x040

Definition at line 28 of file ngx_log.h.

#define NGX_LOG_DEBUG_MYSQL   0x400

Definition at line 32 of file ngx_log.h.

#define NGX_LOG_EMERG   1

Definition at line 17 of file ngx_log.h.

#define NGX_LOG_ERR   4

Definition at line 20 of file ngx_log.h.

#define NGX_LOG_INFO   7

Definition at line 23 of file ngx_log.h.

#define NGX_LOG_NOTICE   6

Definition at line 22 of file ngx_log.h.

#define NGX_LOG_STDERR   0

Definition at line 16 of file ngx_log.h.

#define NGX_LOG_WARN   5

Definition at line 21 of file ngx_log.h.

#define NGX_MAX_ERROR_STR   2048

Definition at line 67 of file ngx_log.h.

Typedef Documentation

typedef u_char*(* ngx_log_handler_pt)(ngx_log_t *log, u_char *buf, size_t len)

Definition at line 45 of file ngx_log.h.

Function Documentation

void ngx_cdecl ngx_log_abort ( ngx_err_t  err,
const char *  fmt,
  ... 
)

Definition at line 190 of file ngx_log.c.

Here is the call graph for this function:

Here is the caller graph for this function:

ngx_log_t* ngx_log_create ( ngx_cycle_t cycle,
ngx_str_t name 
)

Definition at line 352 of file ngx_log.c.

Here is the call graph for this function:

void ngx_cdecl ngx_log_debug_core ( ngx_log_t log,
ngx_err_t  err,
const char *  fmt,
  ... 
)

Definition at line 177 of file ngx_log.c.

Here is the call graph for this function:

u_char* ngx_log_errno ( u_char *  buf,
u_char *  last,
ngx_err_t  err 
)

Definition at line 236 of file ngx_log.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void ngx_cdecl ngx_log_error ( ngx_uint_t  level,
ngx_log_t log,
ngx_err_t  err,
const char *  fmt,
  ... 
)

Definition at line 163 of file ngx_log.c.

Here is the call graph for this function:

void ngx_log_error_core ( ngx_uint_t  level,
ngx_log_t log,
ngx_err_t  err,
const char *  fmt,
va_list  args 
)

Definition at line 83 of file ngx_log.c.

Here is the call graph for this function:

Here is the caller graph for this function:

ngx_log_t* ngx_log_init ( u_char *  prefix)

Definition at line 266 of file ngx_log.c.

Here is the call graph for this function:

Here is the caller graph for this function:

char* ngx_log_set_levels ( ngx_conf_t cf,
ngx_log_t log 
)

Definition at line 371 of file ngx_log.c.

Here is the call graph for this function:

void ngx_cdecl ngx_log_stderr ( ngx_err_t  err,
const char *  fmt,
  ... 
)

Definition at line 206 of file ngx_log.c.

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

ngx_module_t ngx_errlog_module

Definition at line 35 of file ngx_log.c.

ngx_uint_t ngx_use_stderr

Definition at line 53 of file ngx_log.c.