[Mono-devel-list] Re: [Mono-list] Patch for selective logging
Jerome Laban
jlaban at wanadoo.fr
Tue Mar 4 02:13:04 EST 2003
Hi monoers,
This is an update for the selective logging. Thanks to gonzalo and his advices, code is now more in the "mono spirit" :)
The mask can now filter messages from the GC and the values of level and mask can use MONO_LOG_LEVEL and MONO_LOG_MASK envvars.
Jerome.
----- Original Message -----
From: Jerome Laban
To: mono-list at ximian.com
Sent: Sunday, March 02, 2003 5:45 PM
Subject: [Mono-list] Patch for selective logging
Hi everyone,
Here is a possible patch for selective logging to console. Now, messages like "cant resolve internal call to" can be removed. They not only appear when corlib and mono runtime are out of sync, they also appear when embedding mono, and this is annoying.
So here are 3 files:
- A diff for some mono files to call the new logging api,
- Two files for the new logging functions. (to place in ./mono/mono/utils)
Two options are also added to command line :
a.. --log-level=VALUE, for which the possible values are from 2 to 7 (mapped from the G_LOG_LEVEL_XXX enum). 2 stands for error messages only, 7 for error+critical+warning+message+info+debug.
b.. --log-mask=MASK, it is the decimal value of the mask. See mono-logger.h for more infos on possible values.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20030304/a6295851/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: log.diff
Type: application/octet-stream
Size: 8292 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20030304/a6295851/attachment.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mono-logger.c
Type: application/octet-stream
Size: 4628 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20030304/a6295851/attachment-0001.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mono-logger.h
Type: application/octet-stream
Size: 2119 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20030304/a6295851/attachment-0002.obj
More information about the Mono-devel-list
mailing list