Skip to content

Instantly share code, notes, and snippets.

@ijokarumawak
Last active October 6, 2015 09:01
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 ijokarumawak/ba69ee0d8c7007747664 to your computer and use it in GitHub Desktop.
Save ijokarumawak/ba69ee0d8c7007747664 to your computer and use it in GitHub Desktop.
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
public class AirportController {
private final Bucket bucket;
private final Log logger = LogFactory.getLog(getClass());
public List<String> airportNamesStartingWith(@RequestParam String prefix) {
N1qlQuery query = ...;
logger.trace(query.statement());
}
}
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<include resource="org/springframework/boot/logging/logback/base.xml"/>
<logger name="com.couchbase.workshop" level="TRACE"/>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment