diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-10-28 21:47:45 +0100 |
---|---|---|
committer | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-10-29 01:10:07 +0100 |
commit | bc4f7ae512b32fa4b569dfc5242d0b7a5da3f81b (patch) | |
tree | 26754f63d142105a9b6939efe4378c2c2c6eff9d /include/osmocom | |
parent | 490b38f57a24726f3e3493fc3500cda526c5d0aa (diff) |
stats: Add log reporter
This reporter passes the measurement values to the logging subsystem
as DSTATS (which is currently DLGLOBAL) level INFO messages.
Sponsored-by: On-Waves ehf
Diffstat (limited to 'include/osmocom')
-rw-r--r-- | include/osmocom/core/stats.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/osmocom/core/stats.h b/include/osmocom/core/stats.h index beeee16e..68c2e016 100644 --- a/include/osmocom/core/stats.h +++ b/include/osmocom/core/stats.h @@ -30,6 +30,7 @@ struct rate_ctr_desc; enum stats_reporter_type { STATS_REPORTER_STATSD, + STATS_REPORTER_LOG, }; struct stats_reporter { @@ -83,7 +84,9 @@ int stats_set_interval(int interval); struct stats_reporter *stats_reporter_alloc(enum stats_reporter_type type, const char *name); void stats_reporter_free(struct stats_reporter *srep); + struct stats_reporter *stats_reporter_create_statsd(const char *name); +struct stats_reporter *stats_reporter_create_log(const char *name); struct stats_reporter *stats_reporter_find(enum stats_reporter_type type, const char *name); |