c# - Starcounter LogSource -


i'm trying out starcounter beta, , create logsources.

i did find class starcounter.logsources, has property hosting of type starcounter.logging.logsource.

but don't understand how define own log source, appreciated.

sorry documentation wasn't enough in case; it's 1 of things working on improve.

the starcounter.logsources class single place keep few well-known log sources, sql , hosting (that mentioned). these used database engine.

to create , start logging own source, it's easy as:

var log = new logsource("foo"); log.logwarning("i've break loose!"); 

just make sure you've referenced starcounter.logging assembly.


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -