-
Notifications
You must be signed in to change notification settings - Fork 50
Writing Application Logs
altenhof edited this page Mar 24, 2016
·
17 revisions
As outlined in the Introduction, we do support applications that write logs using the slf4j API in combination with one of the API implementations logback or log4j2.
So you need to decide
- which logging implementation you use,
- set your Maven dependencies, and
- adjust your logging configurations accordingly
We'll give details in the following sub sections
As we're talking about application logs in this section, we're only using the core feature and link it with the logback implementation. Since the core feature is pulled as a dependency in the logback implementation, we'll end up with a dependency list like this:
<!-- pulls cf-java-logging-support-core feature -->
<dependency>
<groupId>com.sap.hcp.cf.logging</groupId>
<artifactId>cf-java-logging-support-logback</artifactId>
<version>${cf-logging-version}</version>
</dependency>
<!-- logback -->
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.1.3</version>
</dependency>