aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric Le Goater <clg@fr.ibm.com>2009-11-12 14:40:14 +0100
committerDaniel Lezcano <dlezcano@fr.ibm.com>2009-11-12 14:40:14 +0100
commit641c20a663819f002fa1dded2e93e3e99c781e33 (patch)
tree377a9c33515c88319fb9f114fdc237d7f30e7ba5
parentRemove an unnecessary entry in the spec file (diff)
downloadlxc-641c20a663819f002fa1dded2e93e3e99c781e33.tar.gz
lxc-641c20a663819f002fa1dded2e93e3e99c781e33.tar.bz2
lxc-641c20a663819f002fa1dded2e93e3e99c781e33.zip
export log function so it can be used by library user
The log api may be used by an external component which needs to access these functions. Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
-rw-r--r--src/lxc/log.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lxc/log.h b/src/lxc/log.h
index d9c1fb3..b11093d 100644
--- a/src/lxc/log.h
+++ b/src/lxc/log.h
@@ -285,6 +285,10 @@ extern struct lxc_log_category lxc_log_category_lxc;
ERROR("%s - " format, strerror(errno), ##__VA_ARGS__); \
} while (0)
+extern int lxc_log_fd;
+
extern int lxc_log_init(const char *file, const char *priority,
const char *prefix, int quiet);
+
+extern void lxc_log_setprefix(const char *a_prefix);
#endif