cagataygurturk / lambadaframework

Build serverless REST API's with JAVA. It implements the JAX-RS API and deploys your application easily to AWS Lambda and API Gateway
MIT License
244 stars 48 forks source link

log4j.properties missing for the maven lambada plugin #29

Open cwang opened 7 years ago

cwang commented 7 years ago

Using the lambada boilerplate project, all is good except this bit of usual warning from lacking of log4j configs,

[INFO] Creating deployment bucket if not exists. log4j:WARN No appenders could be found for logger (com.amazonaws.AmazonWebServiceClient). log4j:WARN Please initialize the log4j system properly. [INFO] Deployment bucket already exist.

Upon checking the maven plugin source, it happened in prepare stage where AWS SDK is used to check if a bucket already exists. Because of the lack of stock log4j.properties packaged with the maven plugin, it spits out the warning above. A simple fix is to supply one that logs to stdout.