Implement logging to a SHM ringbuffer

This feature is automatically enabled when running a debug version of i3.
The logfile will use 1% of your physical RAM size, but at max 25 MiB.
This commit is contained in:
Michael Stapelberg
2011-12-09 22:27:35 +00:00
parent 4cd5bf94cf
commit e65ee63763
3 changed files with 146 additions and 23 deletions

View File

@ -68,6 +68,7 @@ CPPFLAGS += -DPCRE_HAS_UCP=1
endif
LIBS += -lm
LIBS += -lrt
LIBS += -L $(TOPDIR)/libi3 -li3
LIBS += $(call ldflags_for_lib, xcb-event,xcb-event)
LIBS += $(call ldflags_for_lib, xcb-keysyms,xcb-keysyms)