summaryrefslogtreecommitdiff
path: root/log.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-04-06 23:38:32 +0200
committerLennart Poettering <lennart@poettering.net>2010-04-06 23:38:32 +0200
commit34f0e866d321ed3f585d7510804fc551af6abaa0 (patch)
tree2f75411bbbc2680082798656078a5a9754faf2ce /log.h
parentd3725859f3d80972d7da3a73b92e58a06ac7d69a (diff)
log: read log settings from the environment
Diffstat (limited to 'log.h')
-rw-r--r--log.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/log.h b/log.h
index d6aa472a24..abea126b91 100644
--- a/log.h
+++ b/log.h
@@ -37,11 +37,16 @@ typedef enum LogTarget{
void log_set_target(LogTarget target);
void log_set_max_level(int level);
+int log_set_target_from_string(const char *e);
+int log_set_max_level_from_string(const char *e);
+
void log_close_kmsg(void);
int log_open_kmsg(void);
void log_close_syslog(void);
int log_open_syslog(void);
+void log_parse_environment(void);
+
void log_meta(
int level,
const char*file,
@@ -55,4 +60,7 @@ void log_meta(
#define log_warning(...) log_meta(LOG_WARNING, __FILE__, __LINE__, __func__, __VA_ARGS__)
#define log_error(...) log_meta(LOG_ERR, __FILE__, __LINE__, __func__, __VA_ARGS__)
+const char *log_target_to_string(LogTarget target);
+LogTarget log_target_from_string(const char *s);
+
#endif