Skip to content

Instantly share code, notes, and snippets.

@mdaley
Created February 26, 2015 17:35
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mdaley/aaf9b62d90f6817eb72a to your computer and use it in GitHub Desktop.
Save mdaley/aaf9b62d90f6817eb72a to your computer and use it in GitHub Desktop.
1. Change to the directory with DynamoDBLocal.jar
2. Create a new file called log4j.properties with the contents:
log4j.rootLogger=DEBUG, stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=_LOG_%d %p [%c] - %m%n
3. Remove the existing log4j.properties files from the jar (there might be two)
zip -d DynamoDBLocal.jar log4j.properties
zip -d DynamoDBLocal.jar log4j.properties
4. Add the new properties file to the jar
zip -u DynamoDBLocal.jar log4j.properties
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment