Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Current »

One of the most helpful parts of Iguana is the logging system. It’s super easy to build intuitive logging for your own components using it. Here are a few pointers:

 iguana.log* gives us calls to the logging system

So this is an example of a log message:

iguana.logInfo("#custom #me This is a custom log")

 You can use #hashtags in your log messages

This makes it a little easier to view the logs and filter on the tags by clicking on them:

See the #custom. If you were to click on it, this is what you would see:

Cool eh? Very nice way of filtering your log data. Switching on Matches only:

 You can relate messages together using message id that is returned from queue.push{data=Message}

This is how you do it:

local MessageId = queue.push{data="A message"}
iguana.logInfo("This is associated with that message.", MessageId)   

Now this custom informational log you just created, will be related in the logs to the message queued.

That’s it! Simple and powerful.

  • No labels