Gets or sets the source object for all log messages generated by this object. If not set, the property returns the current object.
public object LogSource { get; set; }
Public Property LogSource As Object
public:
property Object LogSource {
Object get();
void set(Object LogSource);
}
Remarks
It is handy to set this property to a different object other than this object in some situation where all log messages should come from a single source.
For example, in a build system, uploading files is just a child task of a main one, by assigning this property to the main task,
you can categorize all messages that come from the main task.