X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fshared%2Flog.h;h=5c946faf514c669906d16b2dc357bb09be67e336;hp=0c60b7671bea0107254b0f8325141517c6342600;hb=20ad4cfd8e5592f634f20468798cbc1055ab9faf;hpb=877d54e9b09e093c2102f519a84e2a52637ae035;ds=sidebyside diff --git a/src/shared/log.h b/src/shared/log.h index 0c60b7671..5c946faf5 100644 --- a/src/shared/log.h +++ b/src/shared/log.h @@ -27,6 +27,7 @@ #include #include "macro.h" +#include "sd-id128.h" typedef enum LogTarget{ LOG_TARGET_CONSOLE, @@ -131,5 +132,9 @@ _noreturn_ void log_assert_failed_unreachable( /* This modifies the buffer passed! */ #define log_dump(level, buffer) log_dump_internal(level, __FILE__, __LINE__, __func__, buffer) +bool log_on_console(void); + const char *log_target_to_string(LogTarget target); LogTarget log_target_from_string(const char *s); + +#define MESSAGE_ID(x) "MESSAGE_ID=" SD_ID128_FORMAT_STR, SD_ID128_FORMAT_VAL(x)