Top
Interstage Big DataComplex Event Processing Server V1.1.0 Developer's Reference
FUJITSU Software

4.2.2 Custom Log

Logs can be output from a user-developed Java class to a log file (custom log) for the custom listener. The output destination of the custom log is as follows:

/var/opt/FJSVcep/cep/cep/logs/EngineLog/cepEngineName/custom.log

Output

Use the Apache Log4j class (org.apache.log4j.Logger) for implementation.

Obtain a log output instance using the following method (The argument must be "custom"):

Logger myLogger = Logger.getLogger("custom");

Information

The Apache Log4j jar file is located in /opt/FJSVcep/log4j/lib/log4j-1.2.16.jar.

Use the fatal, error, warn, and info methods of the Logger class to output logs.

myLogger.error("xxxxxx");

Note

You cannot use the trace or debug methods of the org.apache.log4j.Logger class.