Commit graph

4 commits

Author SHA1 Message Date
Penaz
f14f9d2929 Make the plugin loading code use XDG_DATA_HOME 2026-03-15 21:54:59 +01:00
Daniele Penazzo
0ec65fdee5
Added customized logging library (#317)
* Added asynchronous logging library

Did some rudimentary testing, might need more for safety.

Fixes #316 at least in part

* Included missing stdbool include

* Added console logging (in addition to file logging)

* Force a file flush at every write

This might be useful if we want to analyze the cause of a crash, if we
don't flush the file, one to several log lines might be missing.

* Added default log settings for release and debug versions

* Added LOG_*F formattable logging functions

* Allow the main thread to close the logger

Or LS will keep on logging from a detached thread.

* Empty the logger queue on thread exit.

This should remove the possibility of losing messages on exit.

* Add timestamps to logs and avoid double newlines

* Put the log file in XDG_DATA_DIR/libresplit

* Default LogLevel at Warns + Errors

Debug LogLevel stays at "everything"

* Bunch'o'statics

* Move prctl to the beginning of the logging thread code
2026-03-10 19:49:17 +01:00
tepiloxtl
39034e38a3
Add runs history (#194)
* Add run history feature

* Added error handling, forgot to handle error

* Run clang-format

* Don't ls_run_save on reset if run finishes

* Save split segment time

* Reworked split structure, better handle skipped splits
2026-01-17 17:00:01 -03:00
Pedro Montes Alcalde
5cce843464
settings: Dont use a JSON file for defaults (#189) 2026-01-09 12:26:08 -03:00