Lesson 3: Managing Application Logs
Logging is a great add-on for debugging apps during development as well as at runtime. App Builder SDK and CLI provide commodities for developers to log and retrieve information and data from their apps.
In our sample app, logger
is used throughout the hello
action. It is provided by the App Builder's core Logging library.
Copied to your clipboardconst logger = Core.Logger('main', { level: params.LOG_LEVEL || 'info' })
You can control the log level by setting LOG_LEVEL
input in the manifest.yml
file.
Copied to your clipboardinputs:LOG_LEVEL: debug
Please refer to the App Builder's core Logging library to learn more about using logger in your app. If you need more information on this topic on a high level, visit Managing logs in App Builder Apps.