User Level
System Administrator
User LevelSystem Administrator SyntaxThe command uses this syntax.
Or:
Type Clause
To turn on or turn off the trace type TYPE on/off/filename FILE To configure ADK origin trace at start up, use
This feature does not work for clients using XML ADK (matrix.db.Context with protocol set to http: which use MatrixXMLServlet.) You can generate stack trace information from the XML client side only if the XML client side calls one of the matrix.db.Context methods which enables stack trace generation. Verbose Keyword The keyword
For readability, the lengthy session id has been shortened, and the full path name of the JSP has been shortened from org.apache.jsp.common.emxRunMQL_jsp to show only the last level:
19:04:27.902 VERB t@2672 stateless dispatch for executeCmd.bosMQLCommand 19:04:27.902 VERB t@2672 allocate context for session 49XX:mxYY:(emxRunMQL_jsp:521) 19:04:27.902 VERB t@2672 input params: cmd=exec prog JPOGetAttr; 19:04:27.902 MQL t@2672 Start MQLCommand: exec prog JPOGetAttr; 19:04:27.912 MQL t@2672 Session: 49XX:mxYY:(emxRunMQL_jsp:521) 19:04:27.912 MQL t@2672 Program: JPOGetAttr 19:04:27.912 MQL t@2672 args: 19:04:27.912 VERB t@2672 stateless dispatch for allocExternalContext.bosInterface 19:04:27.912 VERB t@2672 input params: sessionId=49XX:mxYY:(emxRunMQL_jsp:521), stackTrace= 19:04:27.912 VERB t@2672 dispatch complete since 19:04:27.912, 0.000 secs (0.000 direct 0.000 nested) 19:04:27.912 VERB t@2672 stateful dispatch for reset.bosContext 19:04:27.912 VERB t@2672 input params: (session=49XX:mxYY:(emxRunMQL_jsp:521)), user=creator, passwd=, lattice= 19:04:27.922 VERB t@2672 output params: returnVal=creator 19:04:27.922 VERB t@2672 dispatch complete since 19:04:27.912, 0.010 secs (0.010 direct 0.000 nested) 19:04:28.012 VERB t@2672 stateless dispatch for openTNRV.bosBusinessObject 19:04:28.012 VERB t@2672 allocate context for session 49XX:mxYY:(emxRunMQL_jsp:521) 19:04:28.012 VERB t@2672 input params: name=t3, type=t3-1, rev=0, vault=unit1 19:04:28.012 VERB t@2672 output params: returnVal objectid=62869.36236.33703.1576 19:04:28.012 VERB t@2672 dispatch complete since 19:04:28.012, 0.000 secs (0.000 direct 0.000 nested 19:04:28.012 VERB t@2672 stateless dispatch for getAttributes.bosBusinessObject 19:04:28.012 VERB t@2672 allocate context for session 49XX:mxYY:(emxRunMQL_jsp:521) 19:04:28.012 VERB t@2672 input params: id=62869.36236.33703.1576, getHidden=0 19:04:28.032 VERB t@2672 dispatch complete since 19:04:28.012, 0.020 secs (0.020 direct 0.000 nested) >>>> End of program execution: 19:04:28.052 MQL t@2672 End Program: JPOGetAttr since 19:04:27.912, 0.140 secs (0.110 direct 0.030 nested) 19:04:28.062 MQL t@2672 End MQLCommand >>>> End of invocation of MQLCommand.executeCommand: 19:04:28.062 VERB t@2672 dispatch complete since 19:04:27.902, 0.160 secs (0.160 direct 0.000 nested) 19:04:28.062 VERB t@2672 stateful dispatch for getClientTask.bosContext 19:04:28.062 VERB t@2672 input params: (session=49XX:mxYY:(emxRunMQL_jsp:521)) 19:04:28.062 VERB t@2672 output params: returnVal length=0 19:04:28.062 VERB t@2672 dispatch complete since 19:04:28.062, 0.000 secs (0.000 direct 0.000 nested) File Clause Specifying a file with the If the filename specified for any tracing already exists in the directory MX_TRACE_FILE_PATH, that existing file will be copied to a backup whose name is constructed by prepending a time-specific prefix to the filename, in the form “yyyymmddhhmmss__FILENAME.” On Clause The The On clause for the Trace command is not supported in the Windows Studio version of MQL. This applies only to the 3DEXPERIENCE Platform (PC rich client). Tracing does work for UNIX and for the console version that is shipped together with the Server. Off Clause The trace type SQL off; trace type all off; When all types of tracing directed at the same file are turned off, the file is closed. In order to resume tracing to a file, any subsequent command must specify a filename. If it doesn’t, tracing will be resumed with stdout as the destination. Instead of having to turn trace types off type-by-type, you can use ‘off’ with no trace type specified to turn all currently active tracing off and to close and unset the destination.
Pause/Resume ClauseYou can use pause to make all the currently active trace types inactive. No tracing output will be produced until a ‘trace resume’ command is issued. Both the list of trace types and the destination are retained, so resume will pick up tracing the same types of information to the same place as it was before pausing. If tracing is not paused, trace resume has no effect.
Not Full Clause Trace output includes timestamp information, which you can turn off with the
Print TraceThe print trace command outputs information for all trace settings, as illustrated by the following trace commands. MQL<3>trace type mql,sql filename mqlsql.log; MQL<4>trace pause; MQL<5>print trace; All thread trace: type = MQL,SQL pathname = c:\ematrix9\logs filename = mqlsql.log <paused> full = TRUE In the above example, when tracing is paused, it is marked by <paused> after the filename. If tracing is turned off, the type and filename fields will be empty. ErrorsIf tracing is currently active with a defined destination and you turn on additional tracing with a different destination, the system will inform you of the current defined destination in a warning, and your added tracing will be streamed to the current destination as well. For example: MQL<16>trace type sql filename sql.log; MQL<18>print trace; Trace: type = SQL pathname = c:\ematrix9\logs filename = sql.log fulllabel = TRUE MQL<19>trace type mql filename mql.log; Warning: #1600078: Filename mql.log ignored. Tracing already active to file c:\ematrix9\logs/sql.log |