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

Php - Delimiter must not be alphanumeric or backslash -

c# - How to change the "Applies To" field under folder auditing options programatically (.NET) -

c++ - Ambiguity when using boost::assign::list_of to construct a std::vector -