Tabnine Logo
Loggable.getSqlWithValues
Code IndexAdd Tabnine to your IDE (free)

How to use
getSqlWithValues
method
in
com.p6spy.engine.common.Loggable

Best Java code snippets using com.p6spy.engine.common.Loggable.getSqlWithValues (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew ArrayList()
  • Codota Iconnew LinkedList()
  • Smart code suggestions by Tabnine
}
origin: p6spy/p6spy

public static void log(Category category, Loggable loggable) {
 if (logger != null && isCategoryOk(category) && isLoggable(loggable.getSql())) {
  doLog(-1, category, loggable.getSql(), loggable.getSqlWithValues());
 }
}
origin: p6spy/p6spy

public static void logElapsed(int connectionId, long timeElapsedNanos, Category category, Loggable loggable) {
 // usually an expensive operation => cache where possible
 String sql = loggable.getSql();
 String url = loggable.getConnectionInformation().getUrl();
 if (logger != null && meetsThresholdRequirement(timeElapsedNanos) && isCategoryOk(category) && isLoggable(sql)) {
  doLogElapsed(connectionId, timeElapsedNanos, category, sql, loggable.getSqlWithValues(), url == null ? "" : url);
 } else if (isDebugEnabled()) {
  sql = loggable.getSqlWithValues();
  debug("P6Spy intentionally did not log category: " + category + ", statement: " + sql + "  Reason: logger=" + logger + ", isLoggable="
    + isLoggable(sql) + ", isCategoryOk=" + isCategoryOk(category) + ", meetsTreshold=" + meetsThresholdRequirement(timeElapsedNanos));
 }
}
origin: p6spy/p6spy

public static void log(Category category, Loggable loggable) {
 if (logger != null && isCategoryOk(category) && isLoggable(loggable.getSql())) {
  doLog(-1, category, loggable.getSql(), loggable.getSqlWithValues());
 }
}
origin: p6spy/p6spy

public static void logElapsed(int connectionId, long timeElapsedNanos, Category category, Loggable loggable) {
 // usually an expensive operation => cache where possible
 String sql = loggable.getSql();
 String url = loggable.getConnectionInformation().getUrl();
 if (logger != null && meetsThresholdRequirement(timeElapsedNanos) && isCategoryOk(category) && isLoggable(sql)) {
  doLogElapsed(connectionId, timeElapsedNanos, category, sql, loggable.getSqlWithValues(), url == null ? "" : url);
 } else if (isDebugEnabled()) {
  sql = loggable.getSqlWithValues();
  debug("P6Spy intentionally did not log category: " + category + ", statement: " + sql + "  Reason: logger=" + logger + ", isLoggable="
    + isLoggable(sql) + ", isCategoryOk=" + isCategoryOk(category) + ", meetsTreshold=" + meetsThresholdRequirement(timeElapsedNanos));
 }
}
com.p6spy.engine.commonLoggablegetSqlWithValues

Popular methods of Loggable

  • getConnectionInformation
  • getSql

Popular in Java

  • Start an intent from android
  • onRequestPermissionsResult (Fragment)
  • getContentResolver (Context)
  • getSharedPreferences (Context)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now