Log
General Action Statement
The Log statement records the time from one statement to another when used in tandem with the Clock function. The Log statement can be used to determine how long an Entity takes to travel from one Location to another, or other similar information.
Syntax
Log <string>, <expression>
Syntax Example
Log "Activity Time", Attr1
Parameters
<string>
This string is stored in the file before the result of the log expression and may not be a string expression. Use this string to identify the number that follows.
<expression>
The expression result subtracted from the model's current time is stored in the file 'model name'.LAP, after the previous string.
Parameters Example
Suppose you have a model representing a coffee shop. Customers enter the system through the front door, line up to order at the front desk, sit and drink their coffee at a table, and then leave the system through the door. If you wanted to track how much time elapses between a customer enters the system and when they sat down at a table, start by assigning an Attribute to the Clock function in the Logic of the front door Location.
aDoor = Clock()
Include the statement...
Log "Door to Table", aDoor
...at a table Location to calculate the "Door to Table" time, which is the time it took an Entity to travel to that table after entering through the door.
For more information on the statements used in this example, see Clock.
Remarks
Log is valid in downtime logic, operation logic, node entry and exit logic, arrival, shift and break logic and routing exit logic.