Add a publicly-exposed function to get the current libcgroup logging
level.
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Acked-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
*/
extern void cgroup_set_loglevel(int loglevel);
+/**
+ * Retrieve the current loglevel.
+ * @return the current loglevel from with libcgroup
+ */
+extern int cgroup_get_loglevel(void);
+
/**
* Libcgroup log function. This is for applications which are too lazy to set
* up their own complex logging and miss-use libcgroup for that purpose.
CGROUP_3.2 {
cgroup_get_threads;
+ cgroup_get_loglevel;
} CGROUP_3.0;
cgroup_loglevel = CGRP_DEFAULT_LOGLEVEL;
}
}
+
+int cgroup_get_loglevel(void)
+{
+ return cgroup_loglevel;
+}