Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Write an entry to the system event log with a custom eventlog message header.
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Sub Log ( _
requestContext As TeamFoundationRequestContext, _
messageBrief As String, _
message As String, _
eventId As Integer, _
level As EventLogEntryType _
)
public void Log(
TeamFoundationRequestContext requestContext,
string messageBrief,
string message,
int eventId,
EventLogEntryType level
)
public:
void Log(
TeamFoundationRequestContext^ requestContext,
String^ messageBrief,
String^ message,
int eventId,
EventLogEntryType level
)
member Log :
requestContext:TeamFoundationRequestContext *
messageBrief:string *
message:string *
eventId:int *
level:EventLogEntryType -> unit
public function Log(
requestContext : TeamFoundationRequestContext,
messageBrief : String,
message : String,
eventId : int,
level : EventLogEntryType
)
Parameters
- requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
messageBrief
Type: System.StringThe brief summary of the error.
message
Type: System.StringThe message to log.
eventId
Type: System.Int32The event ID for the log entry.
level
Type: System.Diagnostics.EventLogEntryTypeThe level for the log entry.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.