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
AppName ModuleName Activity to Monitor App1 Module1 All Activities lc monitor -c "App1.Module1.*"
AppName ModuleName Tag Activity to Monitor App1 Module1 latest All 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