Loupe - Log - Monitor - Resolve
Gibraltar.Agent Namespace / IMessageSourceProvider Interface
Members

In This Topic
    IMessageSourceProvider Interface
    In This Topic
    An interface used to provided the details of the origin (class, method, and source code file) of a log message when passing messages from an external log system to the Loupe Agent.
    Syntax
    'Declaration
     
    
    <NullableContextAttribute(2)>
    Public Interface IMessageSourceProvider 
    [NullableContext(2)]
    public interface IMessageSourceProvider 
    Remarks

    Any field that isn't available can safely return null.

    This interface is intended for use with the Log.Write method when forwarding data from another logging system that has already determined the correct origin of a logging statement. If this information is not available then you can either use the alternate Log.Write method that will automatically determine the message source or pass Null to indicate that no location information is available.

    The Loupe Agent will read all of the properties of this interface during the call to Log.Write and will not retain any reference after the call returns. Because of this, a range of implementations can be done ranging from creating an object that implements this interface being created for every Log call to having one object that is passed for every call.

    Any field that isn't available can safely return null.

    This interface is intended for use with the Log.Write method when forwarding data from another logging system that has already determined the correct origin of a logging statement. If this information is not available then you can either use the alternate Log.Write method that will automatically determine the message source or pass Null to indicate that no location information is available.

    The Loupe Agent will read all of the properties of this interface during the call to Log.Write and will not retain any reference after the call returns. Because of this, a range of implementations can be done ranging from creating an object that implements this interface being created for every Log call to having one object that is passed for every call.

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also