X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fbasic%2Flog.h;h=8619301e1ff62ca868d11744029c9d3a67ec1a7d;hb=c0e8baacdbcf4cee407eb0c50c6fbb7e4e089158;hp=2e1d8c5833bde82794d36f65d3798d3fa29ea77f;hpb=3c4743e938878986b5fd89119d1d050658b8024e;p=elogind.git diff --git a/src/basic/log.h b/src/basic/log.h index 2e1d8c583..8619301e1 100644 --- a/src/basic/log.h +++ b/src/basic/log.h @@ -221,15 +221,15 @@ bool log_on_console(void) _pure_; const char *log_target_to_string(LogTarget target) _const_; LogTarget log_target_from_string(const char *s) _pure_; -/* Helpers to prepare various fields for structured logging */ +/* Helper to prepare various field for structured logging */ #define LOG_MESSAGE(fmt, ...) "MESSAGE=" fmt, ##__VA_ARGS__ -#define LOG_MESSAGE_ID(x) "MESSAGE_ID=" SD_ID128_FORMAT_STR, SD_ID128_FORMAT_VAL(x) #if 0 /// UNNEEDED by elogind void log_received_signal(int level, const struct signalfd_siginfo *si); void log_set_upgrade_syslog_to_journal(bool b); #endif // 0 +void log_set_always_reopen_console(bool b); int log_syntax_internal( const char *unit,