Difference between revisions of "Extensions.Logging.WriteLog"
Jump to navigation
Jump to search
(Created page with "Category:Logging == Classification == {{ClassificationActivity | WriteLog | Writing a log message | Action | OTX Logging extension | Logging related acti...") |
|||
Line 3: | Line 3: | ||
{{ClassificationActivity | WriteLog | Writing a log message | [[Action]] | [[Logging|OTX Logging extension]] | [[Logging related actions]] | [[InvalidReferenceException]] | - }} | {{ClassificationActivity | WriteLog | Writing a log message | [[Action]] | [[Logging|OTX Logging extension]] | [[Logging related actions]] | [[InvalidReferenceException]] | - }} | ||
− | == | + | == OTL Syntax == |
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | WriteLog(SeverityLevel | + | Logging.WriteLog(SeverityLevel, StringTerm, StringTerm); |
</syntaxhighlight> | </syntaxhighlight> | ||
Line 19: | Line 19: | ||
|} | |} | ||
− | == Examples == | + | == OTL Examples == |
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | WriteLog(@ | + | Logging.WriteLog(@SeverityLevels:TRACE, null, null); |
</syntaxhighlight> | </syntaxhighlight> | ||
== See also == | == See also == | ||
[[SetLogLevel]] | [[SetLogLevel]] |
Revision as of 08:23, 10 February 2015
Classification
Name | WriteLog |
Short Description | Writing a log message |
Class | Action |
Extension | OTX Logging extension |
Group | Logging related actions |
Exceptions | InvalidReferenceException |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
Logging.WriteLog(SeverityLevel, StringTerm, StringTerm);
Description
With the WriteLog activity a log message is written by the OTX runtime environment at the end of a log file, see Logging.
Properties
Name | Data Type | Class | Default | Cardinality | Description |
Level | SeverityLevel | Value | @SeverityLevel:TRACE | [1] | Severity level with the following values, see Logging. |
Target | String | Term | - | [0..1] | Location of the log file (URL) |
Message | String | Term | - | [0..1] | Message being written |
OTL Examples
Logging.WriteLog(@SeverityLevels:TRACE, null, null);