/
Logging

Logging

Logging is one of key glance of monitoring.

OpenHub uses by default logback SLF4J implementation (it is also default implementation for Spring Boot, see config examples). There is ohf-logback.xml extension which is logback configuration to allow inject this into your custom logback configuration. This extension uses Spring Boot extensions (defaults.xml, console-appenders.xml) and is registered via logback-spring.xml as one of recommended way. If you want to use custom logback configuration, you have to define logging.config property to define location of the logging configuration file, for example classpath:custom-logback.xml, and create own configuration:

custom-logback.xml
<?xml version="1.0" encoding="UTF-8"?>
<configuration debug="true">
    <include resource="ohf-logback.xml" />
</configuration>


If logback is used, it is possible to configure logging via externalized configuration approach, because OpenHub logback configuration wraps property keys. To configure different implementation of logging platform, see Spring Boot documentation.

Related content

Maintenance
More like this
OpenHub configuration
OpenHub configuration
More like this
Monitoring
More like this
Monitoring
More like this
Running standalone
Running standalone
More like this
Security
More like this