Skip to content

Instantly share code, notes, and snippets.

@mikebroberts
Forked from anonymous/logging-lambda-1.java
Created January 10, 2020 20:49
Show Gist options
  • Save mikebroberts/fd7a5c2a9ef75baf27dd6c6fd967e0f5 to your computer and use it in GitHub Desktop.
Save mikebroberts/fd7a5c2a9ef75baf27dd6c6fd967e0f5 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