summaryrefslogtreecommitdiffstats
path: root/include/osmocore/logging.h
diff options
context:
space:
mode:
authorHarald Welte2011-02-17 15:52:39 +0100
committerHarald Welte2011-02-17 15:52:39 +0100
commit76e72abe329e7b36b88a8f939593d84b2ba00152 (patch)
treefe8aba61dadbaf111a22cb5ba48451747c473326 /include/osmocore/logging.h
parentwrite_queue: Only pop the queue if it is not empty (diff)
downloadlibosmocore-76e72abe329e7b36b88a8f939593d84b2ba00152.tar.gz
libosmocore-76e72abe329e7b36b88a8f939593d84b2ba00152.tar.xz
libosmocore-76e72abe329e7b36b88a8f939593d84b2ba00152.zip
LOGGING: Pass the log level down to the log target output function
This will be required for mapping osmocore log levels to syslog priorities.
Diffstat (limited to 'include/osmocore/logging.h')
-rw-r--r--include/osmocore/logging.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/osmocore/logging.h b/include/osmocore/logging.h
index 27e7734..5b780a3 100644
--- a/include/osmocore/logging.h
+++ b/include/osmocore/logging.h
@@ -95,7 +95,8 @@ struct log_target {
} tgt_vty;
};
- void (*output) (struct log_target *target, const char *string);
+ void (*output) (struct log_target *target, unsigned int level,
+ const char *string);
};
/* use the above macros */