Artifakt provides users with up to 3 types of logs. These logs include:
- Application - For all logs pertaining to a runtime
- Web Server - Logs generated from a web server
- Database - Logs that are generated by a database
However only an Environment's Application Logs are customizable.
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 runtime. 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 runtimes have Log Files, so if your Project does not display any Log File Paths it may be due to the runtime 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 runtime 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 customize 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 categorize the log severity according to your needs.