- improves a lot on the Go side including better config and logging libraries (including log rotation), better internal package distribution, and new a3go functionality to make data transfer more performant - SQF side preprocessing of capture data is now minimal - arrays in hashmap format are sent directly to the extension and parsed there to minimize game impact - CBA custom events are implemented in a better fashion - README update - license change - with performance improvements, the deep customization of integrated metric gathering is removed in return to a single refreshRateMs, defining the interval at which core metrics are captured - peeled back the list of core metrics to the core information used in troubleshooting and benchmarking
28 lines
455 B
Plaintext
28 lines
455 B
Plaintext
#include "script_component.hpp"
|
|
|
|
if (!isServer) exitWith {};
|
|
|
|
if (typeName _this != "ARRAY") exitWith {
|
|
diag_log format ["[%1]: Invalid log params: %2", GVARMAIN(logPrefix), _this];
|
|
};
|
|
|
|
params [
|
|
["_level", "INFO", [""]],
|
|
["_text", "", [""]]
|
|
];
|
|
|
|
if (
|
|
_level == "DEBUG" &&
|
|
!GVARMAIN(debug)
|
|
) exitWith {};
|
|
|
|
if (_text isEqualTo "") exitWith {};
|
|
|
|
diag_log formatText [
|
|
"[%1] %2: %3",
|
|
GVARMAIN(logPrefix),
|
|
_level,
|
|
_text
|
|
];
|
|
|