Skip to main content
The Amplify SDK includes configurable logging to help debug integration issues and monitor SDK behavior in production.

LogLevel

LevelValueDescription
DEBUG0Detailed debugging information (verbose)
INFO1General operational information
WARN2Warning messages for potential issues
ERROR3Error messages only (default)
NONE4Disable all logging

Setting Log Level

At Initialization

At Runtime

Custom Logger Interface

Custom Logger Examples

Basic Console Logger

Winston Integration

Pino Integration

Production Recommendations

Development

Production

Debugging Issues

When troubleshooting, temporarily enable debug logging:
For SDK initialization options, see initAmplifySDK.