Skip to content

Martini Application Logs

Martini application logs record events that occur while the application is running. These logs are crucial for debugging and tracing transactions within the Martini application.

Martini utilizes Apache Log4j, one of the most popular logging frameworks in Java development, for logging purposes. The default configuration is set up to use Log4j, but you can customize it according to your requirements.

For a comprehensive understanding of Log4j terminologies and configuration options, it's recommended to refer to the Apache Log4j manual.

Location of Log Files

Martini stores its log files in the logs directory under the application's home directory. A customized FileAppender, roughly based on the DailyRollingFileAppender, persists log messages to the local file system, rolling them over on a daily basis. The most up-to-date log file is named martini-log.txt, while rolled-over log files are suffixed with their respective dates.

1
2
3
4
5
log4j.appender.file=io.toro.martini.core.util.MartiniFileLogger
log4j.appender.file.File=${toroesb.home}/logs/martini-log.txt
log4j.appender.file.DatePattern='.'yyyy-MM-dd
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d{dd/MM/yy HH:mm:ss.SSS} %-5p [%c{1}] %m%n

Monitoring Logs

Master configuring Martini's loggers and efficiently view and download logged messages.

Monitoring Logs