---
title: "Activity logging"
description: "Setting up logging for the premium server-side components."
canonical_url: "https://www.tiny.cloud/docs/tinymce/7/configure-logging-services/"
md_url: "https://www.tiny.cloud/docs/tinymce/7/configure-logging-services/index.md"
version: "7"
last_updated: "2022-03-30T07:08:51Z"
tokens: 529
---
Important This page documents TinyMCE 7. For new projects, Tiny recommends using the latest, most up-to-date version. [See TinyMCE 8 documentation](../../latest/).
# Activity logging

It may be useful to make the TinyMCE server-side components write to their own log file. This can assist in troubleshooting and make it easier to provide logs as part of a support ticket.

The TinyMCE server-side components use the [Logback](http://logback.qos.ch/manual/configuration.html) logging format.

To write the logs to a specific file:

1. Create a logging configuration XML file. Save the snippet below as `logback.xml` after replacing `{$LOG_LOCATION}` with the full path to the destination log file (e.g. /var/log/tinymce_server_components.log).

```xml
<configuration>

  <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
    <encoder>
      <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
    </encoder>
  </appender>

  <appender name="FILE" class="ch.qos.logback.core.FileAppender">
    <file>{$LOG_LOCATION}</file>
    <encoder>
      <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
    </encoder>
  </appender>

  <!-- The name "com.ephox" refers to all TinyMCE server-side components. -->
  <logger name="com.ephox" level="INFO"/>

  <root level="INFO">
    <appender-ref ref="FILE" />
    <!-- If you want logging to go to the container as well uncomment
    the following line -->
    <!-- <appender-ref ref="STDOUT" /> -->
  </root>

</configuration>
```
2. Pass the configuration file to the Java application server. Assuming you’ve saved your `logback.xml` file in `/etc/opt/tinymce`, follow [step 4](../introduction-to-premium-selfhosted-services/#pass-the-configuration-file-to-the-java-application-server) and [step 5](../introduction-to-premium-selfhosted-services/#restart-the-java-application-server) on the *Install Server-side Components* page to set the following JVM system property on your Java application server:

```
-Dlogback.configurationFile=/etc/opt/tinymce/logback.xml
```
