You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return file_name && *file_name != '\0' && line != 0;
90
102
}
@@ -739,6 +751,21 @@ class Logger {
739
751
template<typename FormatT, typename... Args>
740
752
voidlog_to_sink(int sink_index, LogLevel level, FormatT&& format, Args&&... args);
741
753
754
+
/**
755
+
* @brief Log a message to a specific sink by index with a source path and precomputed file name
756
+
* @param index Index of the sink to log to
757
+
* @param level LogLevel of the message
758
+
* @param file_name Source file path; copied before the entry is queued when full path output is enabled
759
+
* @param line Source line; copied before the entry is queued
760
+
* @param copy_file_name Whether to copy the file name into the log entry (true) or store a pointer to it (false)
761
+
* @param format Format string (printf-style)
762
+
* @param args Arguments for the format string
763
+
* @note Set copy_file_name to false only if the file name is guaranteed to remain valid until the log entry is written to the sink. Otherwise, set it to true to copy the file name into the log entry.
return file_name && *file_name != '\0' && line != 0;
88
100
}
@@ -737,6 +749,21 @@ class Logger {
737
749
template<typename FormatT, typename... Args>
738
750
voidlog_to_sink(int sink_index, LogLevel level, FormatT&& format, Args&&... args);
739
751
752
+
/**
753
+
* @brief Log a message to a specific sink by index with a source path and precomputed file name
754
+
* @param index Index of the sink to log to
755
+
* @param level LogLevel of the message
756
+
* @param file_name Source file path; copied before the entry is queued when full path output is enabled
757
+
* @param line Source line; copied before the entry is queued
758
+
* @param copy_file_name Whether to copy the file name into the log entry (true) or store a pointer to it (false)
759
+
* @param format Format string (printf-style)
760
+
* @param args Arguments for the format string
761
+
* @note Set copy_file_name to false only if the file name is guaranteed to remain valid until the log entry is written to the sink. Otherwise, set it to true to copy the file name into the log entry.
0 commit comments