Skip to content

Instantly share code, notes, and snippets.

Created February 16, 2017 19:02
Show Gist options
  • Save anonymous/d72752f90f13892bcbfaf5f3dc731c1a to your computer and use it in GitHub Desktop.
Save anonymous/d72752f90f13892bcbfaf5f3dc731c1a to your computer and use it in GitHub Desktop.
package io.symphonia;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class LoggingLambda {
// Configure our SLF4J Logger interface
private static final Logger LOG = LoggerFactory.getLogger(LoggingLambda.class);
public void handler(String s) {
// Write to our logger, using SLF4J's message format string
LOG.info("Hello, {}", s);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment