7#include "gtk_wrapper.h"
9typedef struct _LogViewerWidget LogViewerWidget;
27 GtkTextBuffer * messages_buf;
28 GtkTextBuffer * warnings_buf;
29 GtkTextBuffer * critical_buf;
132WARN_UNUSED_RESULT
bool
139WARN_UNUSED_RESULT
Log **
NONNULL_ARGS(1) int undo_manager_undo(UndoManager *self
Undo last action.
Log * zlog
Global variable, available to all files.
CONST WARN_UNUSED_RESULT Log ** log_get(void)
Returns a pointer to the global zlog.
NONNULL void log_free(Log *self)
Stops logging and frees any allocated memory.
Log * log_new(void)
Creates the logger and sets the writer func.
NONNULL void log_init_writer_idle(Log *self, unsigned int secs)
Initializes logging to a file.
NONNULL char * log_get_last_n_lines(Log *self, int n)
Returns the last n lines as a newly allocated string.
NONNULL int log_idle_cb(Log *self)
Idle callback.
bool log_generate_compressed_file(Log *self, char **ret_dir, char **ret_path, GError **error)
Generates a compressed log file (for sending with bug reports).
WARN_UNUSED_RESULT bool log_init_with_file(Log *self, const char *filepath, GError **error)
Initializes logging to a file.
gint64 last_bt_time
Last timestamp a backtrace was obtained.
bool use_structured_for_console
Whether to use structured log when writing to the console.
char * log_filepath
Current log file path.
LogViewerWidget * viewer
Currently opened log viewer.
guint writer_source_id
ID of the source function.
char * log_domains
Used by the writer func.
GLogLevelFlags min_log_level_for_test_console
Minimum log level for the console.
ObjectPool * obj_pool
Object pool for the queue.
MPMCQueue * mqueue
Message queue, for when messages are sent from a non-gtk thread.
Multiple Producer Multiple Consumer lock-free queue.