Skip to main content

Monitoring and Logging an app

The LC is implemented with a logging feature which enables user to monitor activities from building an app, deploying an app, and even the function log itself.

Basic Monitoring

To monitor all your serverless activities, call out:

lc monitor -c *

This will print out all your serverless activities in your terminal.

info

We've discovered some typing issues on different operating system. For example on Unix or Mac you should use -c '*'


Filtering Monitor

To filter your monitor , you can change the value of * to:

{app_name}.{module_name}.{tag_name}.{activity}.*
note
  • We've discovered some typing issues on different operating system. For example on Unix or Mac you should use -c '*'
  • Activity options are: build, deploy, execute

Examples

AppNameModuleNameActivity to Monitor
App1Module1All Activities
lc monitor -c "App1.Module1.*"
AppNameModuleNameTagActivity to Monitor
App1Module1latestAll Build Activities
lc monitor -c "App1.Module1.latest.build.*"

Checking Logs of your Service

You can check logs for your service through the Log part of Deployment Management