Skip to content

Instantly share code, notes, and snippets.

@eoglethorpe
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eoglethorpe/8d8391fb1c27c01551b2 to your computer and use it in GitHub Desktop.
Save eoglethorpe/8d8391fb1c27c01551b2 to your computer and use it in GitHub Desktop.
Properties props = new Properties();
Logger log4jLogger = Logger.getLogger(S3Sink.class);
props.load(getClass().getResourceAsStream("/log4j.properties"));
PropertyConfigurator.configure(props);
log4jLogger.info("log content")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment