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}.{cloud}
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
  • Clouds options are: LYR, AWS, GCP

Examples#

AppNameModuleNameActivity to Monitor
App1Module1All Activities
lc monitor -c "App1.Module1.*"
AppNameModuleNameTagActivity to Monitor
App1Module1latestAll Build Activities
lc monitor -c "App1.Module1.latest.build.*"
AppNameModuleNameTagActivity to MonitorCloud
App1Module1latestAll Execution LogsLYR
lc monitor -c "App1.Module1.latest.execute.LYR"