RetailTracer::LogMessage Method [AX 2012]

Logs a message by raising an ETW event.

NoteNote

The syntax of this method varies based on the version of Microsoft Dynamics AX that you are using.


  Microsoft Dynamics AX 2012 R3
          client server private static void LogMessage(
            int level, 
            str entryType, 
            str area, 
            str methodName, 
            str messageFormat, 
           [anytype p0, 
            anytype p1, 
            anytype p2, 
            anytype p3, 
            anytype p4, 
            anytype p5, 
            anytype p6, 
            anytype p7, 
            anytype p8, 
            anytype p9])

  Microsoft Dynamics AX 2012 R2 (SYS)
          client server private static void LogMessage(
            int level, 
            str entryType, 
            str area, 
            str methodName, 
            str messageFormat, 
           [anytype p0, 
            anytype p1, 
            anytype p2, 
            anytype p3, 
            anytype p4, 
            anytype p5, 
            anytype p6, 
            anytype p7, 
            anytype p8, 
            anytype p9])

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          client server private static void LogMessage(
            str entryType, 
            str area, 
            str methodName, 
            str message)

Run On

Called

Parameters

level
Type: int
.NET trace level
entryType
Type: str
String denoting the type of message to log (error, warning or info).
area
Type: str
String denoting the component or functional area doing the logging. Used for filtering logged messages.
methodName
Type: str
Name of method logging the message, qualified with class name.
messageFormat
Type: str
Message format to be logged.
p0
Type: anytype
paramert 0 of message to be logged.
p1
Type: anytype
paramert 1 of message to be logged.
p2
Type: anytype
paramert 2 of message to be logged.
p3
Type: anytype
paramert 3 of message to be logged.
p4
Type: anytype
paramert 4 of message to be logged.
p5
Type: anytype
paramert 5 of message to be logged.
p6
Type: anytype
paramert 6 of message to be logged.
p7
Type: anytype
paramert 7 of message to be logged.
p8
Type: anytype
paramert 8 of message to be logged.
p9
Type: anytype
paramert 9 of message to be logged.

The message should not contain any of the following: - PII data - user session, server name (already part of the trace) - XPP parameter info (already part of the trace, enabled by XPPParameterInfo keyword)

Show: