Logging
Log Output
Default log file: ./tmp/logs/ep-async-api-importer.log.
You can specify the log file by setting this environment variable:
export CLI_LOGGER_LOG_FILE="{path/filename.ext}"
You can also print the log output to stdout:
export CLI_LOGGER_LOG_TO_STDOUT=true
Pretty Print Log Entries
export CLI_LOGGER_PRETTY_PRINT=true
Log Levels
export CLI_LOGGER_LOG_LEVEL={log level}
Choose one of the following values for the log level: trace | debug | info | warn | error | fatal
In addition, you can log the EP SDK calls:
export CLI_LOGGER_EP_SDK_LOG_LEVEL=trace
Example .env File
Example .env file with full logging enabled:
CLI_LOGGER_LOG_LEVEL=trace
CLI_LOGGER_LOG_FILE=./tmp/logs/ep-async-api-importer-x.log
CLI_LOGGER_EP_SDK_LOG_LEVEL=trace
CLI_LOGGER_PRETTY_PRINT=true
# CLI_LOGGER_LOG_TO_STDOUT=true