lib: introduce log domains
authorThomas Wood <thomas.wood@intel.com>
Tue, 2 Dec 2014 10:54:54 +0000 (10:54 +0000)
committerThomas Wood <thomas.wood@intel.com>
Thu, 11 Dec 2014 17:55:15 +0000 (17:55 +0000)
commit8161a21762b552d97fe6bde8d4fd441d9cd10f61
treeddab7ee124f986af4451508c44890c2ce87bc4c1
parent85b74d5c14506bbae53ab02408102645e071a206
lib: introduce log domains

Log domains can be used to identify the source of log messages, such as
the test being run or the helper library.

v2: Add separate domains for different parts of the helper library and
    use an empty default domain for applications.
    Expand the log output to include the process name and the log level
    of the message in addition to the domain and pid.
    Print the expanded message only for warning and debug messages.

v3: check for glibc before using program_invocation_short_name

Signed-off-by: Thomas Wood <thomas.wood@intel.com>
lib/Makefile.am
lib/igt_core.c
lib/igt_core.h
lib/igt_kms.c