postgresql - Cannot see Simple.Data trace messages -


i cannot seem view trace messages simple.data library. using postgresql provider.

i have added following web config ensure messages come through:

system.diagnostics>     <switches>       <add name="simple.data" value="4" />     </switches>   </system.diagnostics> 

but still nothing. can see output write trace using trace.write("test");

tried adding custom listener, picked generated messages. need enable tracing somehow in simple.data library?

rather using numerical value switch level, use name. it's more reliable. in case:

<system.diagnostics>     <switches>         <add name="simple.data" value="verbose" />     </switches> </system.diagnostics> 

(replace verbose 'info', 'warning', 'error' or 'off' needed)

should wish control trace via code can use simpledatatracesources eg:

simpledatatracesources.tracesource.switch.level = sourcelevels.verbose; 

Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

inno setup - TLabel or TNewStaticText - change .Font.Style on Focus like Cursor changes with .Cursor -