Logs page

Logs Page Breakdown

The most ancient but the most effective way of understanding the system is to check the logs to see if they contain something that we print in case of a problem. Structured logging is particularly helpful if you want to troubleshoot even faster. However, it is not straightforward to check for the logs on CloudWatch. Plus, you can only check the logs of a function at a once. Logs page solves these problem by giving the flexibility of searching the logs for all of your serverless stacks.

You can navigate to logs page from left side bar by clicking Logs icon button.

Logs Icon Button

In logs page, logs are listed in terms of :

  • Time - log time

  • Levels - Represents different levels of severity of logs. You can give your own log levels using Thundra loggers.

  • Function Name - Related function of log

  • Message - Content of log. You can display all content by clicking read more button.

  • Context - Source of log. You can use the standard output or any logger of Thundra or custom logger.

  • Actions - Go to invocation. You can go to invocation that log is included in by clicking this action button.

You can change time interval for displaying logs that generated in a specific time interval using time settings.

You can filter your logs using filtering option next to column names. Log can be filtered by:

  • Log Level: Some logs can be more critical or more mediocre compared to others. For example; console.error() and console.log() represents different level of severity. You can also give your own log level with Thundra loggers. You can filter the logs according to their log level.

  • Log Message: You can make a wild card search in the logs using wild cards or exact words. For example; you can type *undr* and this filter can bring you the logs which contain Thundra and hundreds.

  • Log Context: You can filter the logs according to their source with this field.

  • Function Name: You can make a wild card search in the logs using wild cards or exact words in function name of logs.