Changed default log settings and updated cvar descriptions. Changed anti-stick log event type to a core event.
This commit is contained in:
parent
7afea34ac4
commit
0d484132f9
@ -83,13 +83,13 @@ ammo_57mm_max 500 // p90, fiveseven
|
|||||||
// Log (core)
|
// Log (core)
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
// Enable logging of events in the plugin. Fatal errors are logged independent on this setting.
|
// Enable logging of events in the plugin. Fatal errors are always logged.
|
||||||
// Default: "1"
|
// Default: "1"
|
||||||
zr_log "1"
|
zr_log "1"
|
||||||
|
|
||||||
// A bit field that specify what event types to log. See logging section (3.3) in manual for details.
|
// A bit field that specify what event types to log. See logging section (3.3) in manual for details.
|
||||||
// Default: "3"
|
// Default: "2"
|
||||||
zr_log_flags "3"
|
zr_log_flags "2"
|
||||||
|
|
||||||
// Enable module filtering. Only events from listed modules will be logged.
|
// Enable module filtering. Only events from listed modules will be logged.
|
||||||
// Default: "0"
|
// Default: "0"
|
||||||
@ -99,6 +99,10 @@ zr_log_module_filter "0"
|
|||||||
// Default: "1"
|
// Default: "1"
|
||||||
zr_log_ignore_console "1"
|
zr_log_ignore_console "1"
|
||||||
|
|
||||||
|
// Always log error messages no matter what logging flags or modules filters that are enabled.
|
||||||
|
// Default: "1"
|
||||||
|
zr_log_error_override "1"
|
||||||
|
|
||||||
// Print log events to admin chat in addition to the log file.
|
// Print log events to admin chat in addition to the log file.
|
||||||
// Default: "0"
|
// Default: "0"
|
||||||
zr_log_print_admins "0"
|
zr_log_print_admins "0"
|
||||||
|
@ -164,7 +164,7 @@ stock bool:AntiStickLoadData()
|
|||||||
BuildPath(Path_SM, fullpath, PLATFORM_MAX_PATH, filepath);
|
BuildPath(Path_SM, fullpath, PLATFORM_MAX_PATH, filepath);
|
||||||
|
|
||||||
// Log action to game events.
|
// Log action to game events.
|
||||||
LogEvent(false, LogType_Normal, LOG_GAME_EVENTS, LogModule_AntiStick, "Loaded Data", "Antistick data has been loaded from \"%s\"", fullpath);
|
LogEvent(false, LogType_Normal, LOG_CORE_EVENTS, LogModule_AntiStick, "Loaded Data", "Antistick data has been loaded from \"%s\"", fullpath);
|
||||||
|
|
||||||
// Retrieve keyvalue data from a file, and store in server's memory.
|
// Retrieve keyvalue data from a file, and store in server's memory.
|
||||||
KvRewind(g_kvAntiStick);
|
KvRewind(g_kvAntiStick);
|
||||||
@ -185,7 +185,7 @@ stock AntiStickSaveData()
|
|||||||
BuildPath(Path_SM, fullpath, PLATFORM_MAX_PATH, filepath);
|
BuildPath(Path_SM, fullpath, PLATFORM_MAX_PATH, filepath);
|
||||||
|
|
||||||
// Log action to game events.
|
// Log action to game events.
|
||||||
LogEvent(false, LogType_Normal, LOG_GAME_EVENTS, LogModule_AntiStick, "Saved Data", "Antistick data has been saved to \"%s\"", fullpath);
|
LogEvent(false, LogType_Normal, LOG_CORE_EVENTS, LogModule_AntiStick, "Saved Data", "Antistick data has been saved to \"%s\"", fullpath);
|
||||||
|
|
||||||
// Dump keyvalue structure into a file from the server's memory.
|
// Dump keyvalue structure into a file from the server's memory.
|
||||||
KvRewind(g_kvAntiStick);
|
KvRewind(g_kvAntiStick);
|
||||||
|
@ -224,11 +224,11 @@ CvarsCreate()
|
|||||||
// ===========================
|
// ===========================
|
||||||
// Log (core)
|
// Log (core)
|
||||||
// ===========================
|
// ===========================
|
||||||
g_hCvarsList[CVAR_LOG] = CreateConVar("zr_log", "1", "Enable logging of events in the plugin. Fatal errors are logged independent on this setting.");
|
g_hCvarsList[CVAR_LOG] = CreateConVar("zr_log", "1", "Enable logging of events in the plugin. Fatal errors are always logged.");
|
||||||
g_hCvarsList[CVAR_LOG_FLAGS] = CreateConVar("zr_log_flags", "3", "A bit field that specify what event types to log. See logging section (3.3) in manual for details.");
|
g_hCvarsList[CVAR_LOG_FLAGS] = CreateConVar("zr_log_flags", "2", "A bit field that specify what event types to log. See logging section (3.3) in manual for details.");
|
||||||
g_hCvarsList[CVAR_LOG_MODULE_FILTER] = CreateConVar("zr_log_module_filter", "0", "Enable module filtering. Only events from listed modules will be logged.");
|
g_hCvarsList[CVAR_LOG_MODULE_FILTER] = CreateConVar("zr_log_module_filter", "0", "Enable module filtering. Only events from listed modules will be logged.");
|
||||||
g_hCvarsList[CVAR_LOG_IGNORE_CONSOLE] = CreateConVar("zr_log_ignore_console", "1", "Don't log events triggered by console commands that are executed by the console itself, like commands in configs. Enable this command to avoid spamming logs with events like weapon restrictions.");
|
g_hCvarsList[CVAR_LOG_IGNORE_CONSOLE] = CreateConVar("zr_log_ignore_console", "1", "Don't log events triggered by console commands that are executed by the console itself, like commands in configs. Enable this command to avoid spamming logs with events like weapon restrictions.");
|
||||||
g_hCvarsList[CVAR_LOG_ERROR_OVERRIDE] = CreateConVar("zr_log_error_override", "1", "Always log error messages. Overrides module filter and logging flags.");
|
g_hCvarsList[CVAR_LOG_ERROR_OVERRIDE] = CreateConVar("zr_log_error_override", "1", "Always log error messages no matter what logging flags or modules filters that are enabled.");
|
||||||
g_hCvarsList[CVAR_LOG_PRINT_ADMINS] = CreateConVar("zr_log_print_admins", "0", "Print log events to admin chat in addition to the log file.");
|
g_hCvarsList[CVAR_LOG_PRINT_ADMINS] = CreateConVar("zr_log_print_admins", "0", "Print log events to admin chat in addition to the log file.");
|
||||||
g_hCvarsList[CVAR_LOG_PRINT_CHAT] = CreateConVar("zr_log_print_chat", "0", "Print log events to public chat in addition to the log file.");
|
g_hCvarsList[CVAR_LOG_PRINT_CHAT] = CreateConVar("zr_log_print_chat", "0", "Print log events to public chat in addition to the log file.");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user