]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/basic/log.h
log: add new "prohibit_ipc" flag to logging system
[thirdparty/systemd.git] / src / basic / log.h
index b97cdcd703de8cb5c0826a4ee85aab51ebc96a56..0a8fa228662ac603b296e15c13c81934884d545b 100644 (file)
@@ -302,10 +302,15 @@ LogTarget log_target_from_string(const char *s) _pure_;
 
 void log_received_signal(int level, const struct signalfd_siginfo *si);
 
+/* If turned on, any requests for a log target involving "syslog" will be implicitly upgraded to the equivalent journal target */
 void log_set_upgrade_syslog_to_journal(bool b);
 void log_set_always_reopen_console(bool b);
 void log_set_open_when_needed(bool b);
 
+/* If turned on, then we'll never use IPC-based logging, i.e. never log to syslog or the journal. We'll only log to
+ * stderr, the console or kmsg */
+void log_set_prohibit_ipc(bool b);
+
 int log_syntax_internal(
                 const char *unit,
                 int level,