Logging
View Log Files
Backend
The backed logfiles can be directly viewed from within the vscode web interface. Located under https://portrait.yourDomain.com/config/.
Â
Others
You can see the logs of Portrait on the server. Navigate to the installation folder of Portrait and execute the following commands:
See all logs
docker-compose logs
See the frontend logs
docker-compose logs frontend
Follow the server logs
docker-compose logs -f frontend
You can close this view with CTRL+C
.
See the last 500 entries of the server logs
Â
All examples are based on the standard docker container names, if you changed them, you need to take this into account for your logs
commands.
Custom Logging Configuration
Portrait uses the Logback Library for Logging and comes with a default logging configuration.
This configuration can be overwritten with your own.
Configuration in application.yml:
The path of the logfile needs to be accessable within the docker container. Therefore it should be in the config folder which is mapped as a volume inside the container.
Example logback.xml
The Logfiles should be written to logs/
. Then the files will be mapped on the host via docker-compose.
Further Information is available on the official logback documentation
Â
Â
Copyright Treskon GmbH.