~aperezdc/kiln

03243456bffa6d40c6c7c8e9b839ccb0b5a7994a — Adrian Perez de Castro 4 years ago ac82342
Add logging domains for the different components

Set the G_LOG_DOMAIN macro at build time for each component. This allows
more easily filtering logged messages using e.g. the G_MESSAGES_DEBUG
environment variable.
3 files changed, 9 insertions(+), 0 deletions(-)

M libkn/meson.build
M modules/meson.build
M shell/meson.build
M libkn/meson.build => libkn/meson.build +3 -0
@@ 15,6 15,9 @@ libkn_headers = files(
libkn = library('kiln',
	libkn_sources,
	libkn_headers,
	c_args: [
		'-DG_LOG_DOMAIN="Kiln"',
	],
	dependencies: libkn_dependencies,
	build_by_default: false,
)

M modules/meson.build => modules/meson.build +3 -0
@@ 5,6 5,9 @@ all_modules = [
foreach module : all_modules
	shared_module(module,
		module + '.c',
		c_args: [
			'-DG_LOG_DOMAIN="Kiln-Mod-' + module.to_upper() + '"',
		],
		dependencies: [
			libkn_dep,
		],

M shell/meson.build => shell/meson.build +3 -0
@@ 2,6 2,9 @@ libedit_dep = dependency('libedit')

shell_exe = executable('kn-jsc',
	'main.c',
	c_args: [
		'-DG_LOG_DOMAIN="Kiln-Shell"',
	],
	dependencies: [
		libedit_dep,
		libkn_dep,