Logging to file can be initiated by:
weston_log_file_create() , weston_log_file_destroy()

For writing log messages themselves, use wl_log()
or W_PRINTF()

Provides weston_log_duplicator handler for writing both
to file and stderr.
---
 src/Makefile.am |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index 794b521..0c7566f 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -11,6 +11,8 @@ weston_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
 weston_LDADD = $(COMPOSITOR_LIBS) $(DLOPEN_LIBS) -lm ../shared/libshared.la
 
 weston_SOURCES =                               \
+       log.c                                   \
+       log.h                                   \
        compositor.c                            \
        compositor.h                            \
        filter.c                                \
-- 
1.7.5.4

_______________________________________________
wayland-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to