summaryrefslogtreecommitdiff
path: root/lib/utils/mu-logger.cc
AgeCommit message (Collapse)Author
2025-11-01logging: don't g_message with --quietDirk-Jan C. Binnema
When `--quiet` is passed (and not --debug), do not log with g_message at startup.
2024-05-07logging: rework a bit, maybe support syslogDirk-Jan C. Binnema
Seems journal logging fails on NetBSD (no surprise), but has some unwanted/not-fully-understood side-effects. In any case, outside Linux there's no use in even trying to use journald; so we don't do that anymore. Add conditional support for syslog (requires glib 2.80).
2024-03-15clang: fix some compiler warningsDirk-Jan C. Binnema
From CI.
2023-09-24improve unit testsDirk-Jan C. Binnema
2023-09-11unit-tests: modernizeDirk-Jan C. Binnema
Use TempDir, join_paths etc.
2023-07-05utils: rework Mu::Error and g_ logging macros with fmtDirk-Jan C. Binnema
A bit more C++ template magic to remove a lot of code.
2023-04-09logger: create logdir if non-existentDirk-Jan C. Binnema
2023-04-08mu-logger: Add lock for file-logger and stress testDirk-Jan C. Binnema
Add a lock to the file logger and add a unit-test to stress test it. (It does fail without the lock, and passed with it). Should help for: #2469.
2022-11-16lib: remove mu-runtimeDirk-Jan C. Binnema
Remove runtime; update the logger for that, and move the runtime-paths stuff to utils.
2022-03-13logger: with MU_LOG_STDOUTERR, write logs to consoleDirk-Jan C. Binnema
For debugging
2021-10-20clang-format: update c/cc coding styleDirk-Jan C. Binnema
Update all cc code using .clang-format; please do so as well for future PRs etc.; emacs has a handy 'clang-format' mode to make this automatic. For comparing old changes with git blame, we can disregard this one using --ignore-rev (see https://www.moxio.com/blog/43/ignoring-bulk-change-commits-with-git-blame )
2021-07-29mu: use g_strerror instead of strerrorDirk-Jan C. Binnema
Some #includes were missing for the latter (but only noticeable on some systems - e.g., build breaks on Cygwin). So let's replace with something that works equally everywhere. Fixes: #2060
2020-10-02Use g_stat() instead of stat() with GStatBufJuan Jose Garcia-Ripoll
2020-07-25fix compilation error / clang warningsDirk-Jan C. Binnema
2020-07-13Added missing include filesdamon-kwok
2020-06-26utils: add async-queue, ansio-printerDirk-Jan C. Binnema
Add an async-queue (rougly, GAsyncQueue but in c++ using a deque) Add an ANSI color printer.
2020-05-30lib/utils: add mu-logger.{cc,hh}Dirk-Jan C. Binnema
They were missing. Fixes #1713.