congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Loggable
Code IndexAdd Tabnine to your IDE (free)

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

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

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

 protected void logElapsed(Loggable loggable, long timeElapsedNanos, Category category, SQLException e) {
  P6LogQuery.logElapsed(loggable.getConnectionInformation().getConnectionId(), timeElapsedNanos, category, loggable);
 }
}
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

 protected void logElapsed(Loggable loggable, long timeElapsedNanos, Category category, SQLException e) {
  P6LogQuery.logElapsed(loggable.getConnectionInformation().getConnectionId(), timeElapsedNanos, category, loggable);
 }
}
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.commonLoggable

Javadoc

Assures capability of the class to be logged by P6LogQuery.

Most used methods

  • getConnectionInformation
  • getSql
  • getSqlWithValues

Popular in Java

  • Finding current android device location
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setContentView (Activity)
  • scheduleAtFixedRate (Timer)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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