log log_level
parent
bbc7e78e05
commit
27b208c296
11
sample.conf
11
sample.conf
|
|
@ -47,6 +47,17 @@ max_pkg_size = 64KB
|
||||||
# default value is 64KB
|
# default value is 64KB
|
||||||
thread_stack_size = 256KB
|
thread_stack_size = 256KB
|
||||||
|
|
||||||
|
#standard log level as syslog, case insensitive, value list:
|
||||||
|
### emerg for emergency
|
||||||
|
### alert
|
||||||
|
### crit for critical
|
||||||
|
### error
|
||||||
|
### warn for warning
|
||||||
|
### notice
|
||||||
|
### info
|
||||||
|
### debug
|
||||||
|
log_level=info
|
||||||
|
|
||||||
#unix group name to run this program,
|
#unix group name to run this program,
|
||||||
#not set (empty) means run by the group of current user
|
#not set (empty) means run by the group of current user
|
||||||
run_by_group =
|
run_by_group =
|
||||||
|
|
|
||||||
|
|
@ -267,7 +267,6 @@ int sf_load_config(const char *server_name, const char *filename,
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
//log_set_time_precision(&g_log_context, LOG_TIME_PRECISION_MSECOND);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -278,7 +277,7 @@ void sf_log_config()
|
||||||
"max_connections=%d, accept_threads=%d, work_threads=%d, "
|
"max_connections=%d, accept_threads=%d, work_threads=%d, "
|
||||||
"connect_timeout=%d, network_timeout=%d, thread_stack_size=%d, "
|
"connect_timeout=%d, network_timeout=%d, thread_stack_size=%d, "
|
||||||
"max_pkg_size=%d, min_buff_size=%d, max_buff_size=%d, "
|
"max_pkg_size=%d, min_buff_size=%d, max_buff_size=%d, "
|
||||||
"sync_log_buff_interval=%d, rotate_error_log=%d, "
|
"log_level=%s, sync_log_buff_interval=%d, rotate_error_log=%d, "
|
||||||
"log_file_keep_days=%d, run_by_group=%s, run_by_user=%s",
|
"log_file_keep_days=%d, run_by_group=%s, run_by_user=%s",
|
||||||
g_sf_global_vars.base_path,
|
g_sf_global_vars.base_path,
|
||||||
g_sf_global_vars.inner_port,
|
g_sf_global_vars.inner_port,
|
||||||
|
|
@ -294,6 +293,7 @@ void sf_log_config()
|
||||||
g_sf_global_vars.max_pkg_size,
|
g_sf_global_vars.max_pkg_size,
|
||||||
g_sf_global_vars.min_buff_size,
|
g_sf_global_vars.min_buff_size,
|
||||||
g_sf_global_vars.max_buff_size,
|
g_sf_global_vars.max_buff_size,
|
||||||
|
log_get_level_caption(),
|
||||||
g_sf_global_vars.sync_log_buff_interval,
|
g_sf_global_vars.sync_log_buff_interval,
|
||||||
g_sf_global_vars.rotate_error_log,
|
g_sf_global_vars.rotate_error_log,
|
||||||
g_sf_global_vars.log_file_keep_days,
|
g_sf_global_vars.log_file_keep_days,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue