[RFC] Logging API v3

Ustun Ergenoglu ustun.ergenoglu at gmail.com
Mon Feb 27 14:30:46 PST 2012


From: Üstün Ergenoğlu <ego at ustun.fi>

Here's another attempt for the logging functionality. This time it supports
log categories for different components.

The patches are available at:
https://github.com/badZeppelin/weston/tree/logging

Üstün Ergenoğlu (3):
  Added logging API.
  compositor: command line switches for logging level options.
  compositor: Replaced fprintf calls with appropriate wl_log_* calls.

 src/Makefile.am          |    2 +
 src/compositor-drm.c     |   66 +++++++------
 src/compositor-openwfd.c |   43 +++++----
 src/compositor-wayland.c |   33 ++++---
 src/compositor-x11.c     |   27 ++++--
 src/compositor.c         |  115 +++++++++++++++++------
 src/evdev.c              |   10 +-
 src/log.c                |  240 ++++++++++++++++++++++++++++++++++++++++++++++
 src/log.h                |  103 ++++++++++++++++++++
 src/shell.c              |   17 ++-
 src/tablet-shell.c       |   16 ++-
 src/tty.c                |   35 ++++---
 src/xserver-launcher.c   |  142 ++++++++++++++-------------
 13 files changed, 650 insertions(+), 199 deletions(-)
 create mode 100644 src/log.c
 create mode 100644 src/log.h

-- 
1.7.9



More information about the wayland-devel mailing list