Actions

Difference between revisions of "LOG - Send text to exchange’s log port (including date/time)"

From Zenitel Wiki

(Example)
(Syntax)
 
(13 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 +
{{AI}}
 +
The LOG command is used in the [[Event Handler]] to send customized log events to the [[System log]].
 
== Syntax ==
 
== Syntax ==
  
  LOG <“free text”>  
+
  LOG <"free text">
 +
 
 +
 
 +
Maximum 128 characters. If longer strings, the first 128 characters will be sent, the rest will be ignored.
  
 
== Example ==
 
== Example ==
  
  LOG “Door A2 open” – Output: 10-13 19:07 N001.Exch: Door A2 open
+
  LOG "Door A2 open"
LOG “Door A2 open by %2.dir %2.nam”
+
The output to the System log will be: Dec 18 13:32:18 src@AlphaCom AlphaLog: N001.D065:.Exch: Door A2 open
  
 
[[Category:Event Handler]]
 
[[Category:Event Handler]]
 
[[Category:Built-In Action Commands]]
 
[[Category:Built-In Action Commands]]
 +
[[Category:Logging]]

Latest revision as of 12:02, 7 October 2020

AI.png

The LOG command is used in the Event Handler to send customized log events to the System log.

Syntax

LOG <"free text">


Maximum 128 characters. If longer strings, the first 128 characters will be sent, the rest will be ignored.

Example

LOG "Door A2 open"
The output to the System log will be: Dec 18 13:32:18 src@AlphaCom AlphaLog: N001.D065:.Exch: Door A2 open