Codota Logo
Profiler.isDebugEnabled
Code IndexAdd Codota to your IDE (free)

How to use
isDebugEnabled
method
in
org.sonar.core.util.logs.Profiler

Best Java code snippets using org.sonar.core.util.logs.Profiler.isDebugEnabled (Showing top 1 results out of 315)

  • Common ways to obtain Profiler
private void myMethod () {
Profiler p =
  • Codota IconLogger logger;Profiler.create(logger)
  • Codota IconLogger logger;Profiler.createIfTrace(logger)
  • Smart code suggestions by Codota
}
origin: SonarSource/sonarqube

@Test
public void test_levels() {
 // info by default
 assertThat(underTest.isDebugEnabled()).isFalse();
 assertThat(underTest.isTraceEnabled()).isFalse();
 tester.setLevel(LoggerLevel.DEBUG);
 assertThat(underTest.isDebugEnabled()).isTrue();
 assertThat(underTest.isTraceEnabled()).isFalse();
 tester.setLevel(LoggerLevel.TRACE);
 assertThat(underTest.isDebugEnabled()).isTrue();
 assertThat(underTest.isTraceEnabled()).isTrue();
}
org.sonar.core.util.logsProfilerisDebugEnabled

Popular methods of Profiler

  • create
  • stopInfo
  • startInfo
  • stopError
  • addContext
    Context information is removed if value is null.
  • createIfTrace
  • logTimeLast
    Defines whether time is added to stop messages before or after context (if any). flag is false by d
  • start
  • startTrace
  • stopTrace
  • hasContext
  • stopDebug
  • hasContext,
  • stopDebug,
  • createIfDebug,
  • isTraceEnabled,
  • startDebug

Popular in Java

  • Making http requests using okhttp
  • getApplicationContext (Context)
  • orElseThrow (Optional)
  • startActivity (Activity)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now