Logs let you detect errors and unexpected behaviors occurring in your application.
Web Servers Logs
Artifakt aggregates the following log categories for each environment:
- Web Server – Anything related to Web servers (Apache or Nginx) or coming from your application, i.e. what is generated by the code of your application or its dependencies..
- Database – Everything related to your application database. You will find a section about slow queries (SQL queries whose execution takes more than 10 seconds) and another one about errors.
For each of the above categories, it is possible to:
You also have a real-time mode allowing you to see the content of the log files without having to reload the pages. This mode can be particularly useful during debugging sessions.
To stream specific log entries from your source code to the Artifakt Console, you should send the logs directly to the standard output
stderr. Then, the data would be aggregated and available from Environment → Logs.
You can define custom log levels to filter and sort log entries more easily. For example, you can define a new log level called
Importand using the
?importpattern. Then, go to Environment → Logs and you will be able to filter log entries that contain the "import" string.
Custom Logs Levels Configuration