How do I manage my application's logs?

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?

 Screenshot_2020-05-06_at_14.55.25.png

 

Where do I configure my logs?

Your logs can be configured from 'Project -> Settings -> Logs'

Screenshot_2020-05-06_at_14.56.22.png

 

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.

Screenshot_2020-05-06_at_14.18.24.png

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. 

Screenshot_2020-05-06_at_14.18.45.png

 

 

Was this article helpful?
0 out of 0 found this helpful