-
Notifications
You must be signed in to change notification settings - Fork 7
send_log
Tushar Semwal edited this page Oct 15, 2017
·
1 revision
send_log (Agent_name, Message) % It causes the specified agent to send a message to the log server. %
Agent_name: <atom +>, Message: <atom +>
This predicate is used by agents to send log messages to log server. The log server displays these messages on its terminal. The Agent_name is the agent sending the message to the log server.
CAUTION: The IP address and port number of log server have to be known to the concerned platform. Do not forget to set the log server (set_log_server/2) for the same.
send_log(myagent, ‘Hello log server’).
The log file format is as below:
<Time in seconds> <Agent name> <IP address of the platform from which log was sent> <port number of the platform from which log was sent> <Message>
Example log file format:
1406530660.314867 hlxyll localhost 5656 Hello log server
1406530660.321872 hlxyll localhost 5657 Hello log server
1406530660.331881 hlxyll localhost 5658 Hello log server
1406530660.337885 hlxyll localhost 5659 Hello log server