Tideway Community Forum

forgot password?
   
 
Log Functions
Posted: 29 October 2008 04:54 PM   [ Ignore ]  
Jr. Member
RankRank
Total Posts:  46
Joined  2008-10-17

I can see in the TPL documentation that there are some functions for writing to a log during the execution of a pattern.

Log Functions

The following functions are for logging. Each takes a single positional argument:

log.debug(string)
log.info(string)
log.warn(string)
log.error(string)
log.critical(string) 
Log the given message with the specified logging level. The log messages that are output automatically include the name of the pattern performing the log action.

How do I view these log messages?

Profile
 
 
Posted: 29 October 2008 05:11 PM   [ Ignore ]   [ # 1 ]  
Newbie
Rank
Total Posts:  4
Joined  2008-02-28
wearnest@teleflora.com - 29 October 2008 04:54 PM
How do I view these log messages?

They are output to files called tw_svc_eca_patterns_xx.log. The xx depends which ECA engine processed the pattern; the number of engines depends on the number of processors your VM has.

To see these, you can click the “Administration” tab, then “View Logs” under the Appliance heading. I’d open these in a new tab, as you can watch them as discovery occurs. Alternatively, you can view the raw files in the “/usr/tideway/log” directory.

You can change the level at which messages are logged (debug, info etc) by clicking “Logging Levels” under the Appliance heading.

In the next release of Foundation, we’re planning lots of features to aid pattern development that make seeing output from these commands more straightforward.

Hope that helps,

Tim

Profile