Artifakt provides users up to 3 types of log types. These logs include:
- Application - For all logs pertaining to a buildpack
- Web Server - Logs generated from a web server
- Database - Logs that are generated by a database
However only an Environment's Application Logs are customisable.
Looking to view your environment logs?
Where do I configure my Logs?
Your logs can be configured from 'Project -> Settings -> Logs'
What can I configure?
Custom Log Files
Artifakt allows you to edit the Log Files that are used for your application's logs. By default Artifakt will display the paths of the Log Files provided by the buildpack. If you wish to remove these files from being used, you can simply remove the path. However if your application uses it's own custom logs, you can add the path to the file here and Artifakt will stream the logs from that file.
Not all buildpacks have Log Files, so if your Project does not display any Log File Paths it may be due to the buildpack you have selected.
Note that removing a path will not remove the existing logs from your Environments Logs, as once the logs have been streamed they cannot be removed. However no further logs will be streamed once the path is removed.
Custom Log Levels
Like Log Files, Artifakt offers default Log Levels depending on the buildpack chosen. However these default levels can be removed or overwriten. Note, these Log Levels only apply to the application logs.
You must set the name for the 'Level' and also the corresponding 'Pattern'. You can include '?' or '-' to further customise the Pattern. You must include double quote marks around any pattern that includes special characters.
- ? - an OR command, for example a pattern like '?Error ?Bug'
- - - a negation command, for example a pattern like 'Error - 100'
Artifakt offers custom Color selection so that you can categorise the log severity according to your needs.