Develop > Service Health > Service Health Rules API > Write to log files from the Rules API code

Write to log files from the Rules API code

Within your API rules, you can write to log files from rule methods using a logger object. There are five log levels: debug, info, warn, error and fatal. Each of these uses a specific logger method.

By default, only log method invocations of error and fatal severity are written to the log files. You can modify this within the log configuration files.