Search in sources :

Example 6 with LogManager

use of core.framework.impl.log.LogManager in project core-ng-project by neowu.

the class ActionLogContext method stat.

// used to collect business metrics, and can be aggregated by Elasticsearch/Kibana
public static void stat(String key, Number value) {
    LogManager logManager = logManager();
    ActionLog actionLog = logManager.currentActionLog();
    if (actionLog != null) {
        actionLog.stat(key, value);
    }
}
Also used : LogManager(core.framework.impl.log.LogManager) ActionLog(core.framework.impl.log.ActionLog)

Aggregations

LogManager (core.framework.impl.log.LogManager)6 ActionLog (core.framework.impl.log.ActionLog)5 ByteArraySerializer (org.apache.kafka.common.serialization.ByteArraySerializer)1 StringSerializer (org.apache.kafka.common.serialization.StringSerializer)1 BeforeEach (org.junit.jupiter.api.BeforeEach)1