Lesson 3: Managing Application Logs
Logging is a useful add-on for debugging apps during development as well as at runtime. Both App Builder SDK and CLI provide capabilities 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 high-level information on this topic, review Managing logs in App Builder Apps.