[Mono-bugs] [Bug 564417] New: TraceSource does not do ShouldTrace properly
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Dec 14 09:36:01 EST 2009
http://bugzilla.novell.com/show_bug.cgi?id=564417
http://bugzilla.novell.com/show_bug.cgi?id=564417#c0
Summary: TraceSource does not do ShouldTrace properly
Classification: Mono
Product: Mono: Runtime
Version: 2.4.x
Platform: x86
OS/Version: Ubuntu
Status: NEW
Severity: Normal
Priority: P5 - None
Component: debug
AssignedTo: martin at novell.com
ReportedBy: weaver at nc.rr.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
Created an attachment (id=332436)
--> (http://bugzilla.novell.com/attachment.cgi?id=332436)
A test example; run under windows and mono and see results.
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5)
Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729)
I am using Mono Version 2.4.2.3 on Ubuntu 9.10.
If you create a new TraceSource and set the level to be critical and error.
TraceSource ts = new TraceSource("MyTest");
ts.SwitchLevel = SourceLevels.Critical | SourceLevels.Error;
On VS if you run this line it comes out false (which is correct) but on Mono
you get true.
bool b = ts.Switch.ShouldTrace(TraceEventType.Verbose);
This problem causes all Traces to be sent to the Listeners regardless of level.
Reproducible: Always
Steps to Reproduce:
1. Create a TraceSource
2. Set the level to Critical and Error
3. Pass it a Verbose Message
Actual Results:
Output on VS is false, on Mono it is True
Expected Results:
I would expect for it to emulate VS.
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list