Codota Logo
org.sonar.core.util.logs
Code IndexAdd Codota to your IDE (free)

How to use org.sonar.core.util.logs

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: SonarSource/sonarqube

private Profiler doStart(LoggerLevel logLevel, String message, Object... args) {
 init(message, args);
 logStartMessage(logLevel, message, args);
 return this;
}
origin: SonarSource/sonarqube

@Override
public Profiler startDebug(String message, Object... args) {
 return doStart(LoggerLevel.DEBUG, message, args);
}
origin: SonarSource/sonarqube

@Override
public long stopInfo() {
 return doStopWithoutMessage(LoggerLevel.INFO);
}
origin: SonarSource/sonarqube

private void logStartMessage(LoggerLevel loggerLevel, String message, Object... args) {
 if (shouldLog(logger, loggerLevel)) {
  StringBuilder sb = new StringBuilder();
  sb.append(message);
  appendContext(sb);
  log(loggerLevel, sb.toString(), args);
 }
}
origin: SonarSource/sonarqube

@Override
public long stopTrace(String message) {
 return doStop(LoggerLevel.TRACE, message, null, NO_MESSAGE_SUFFIX);
}
origin: SonarSource/sonarqube

private static void addSomeContext(Profiler profiler) {
 profiler.addContext("a_string", "bar");
 profiler.addContext("null_value", null);
 profiler.addContext("an_int", 42);
 profiler.addContext("after_start", true);
}
origin: SonarSource/sonarqube

public static Profiler create(Logger logger) {
 return new DefaultProfiler(logger);
}
origin: SonarSource/sonarqube

@Override
public long stopInfo(String message, Object... args) {
 return doStop(LoggerLevel.INFO, message, args, NO_MESSAGE_SUFFIX);
}
origin: SonarSource/sonarqube

@Override
public Profiler startInfo(String message, Object... args) {
 return doStart(LoggerLevel.INFO, message, args);
}
origin: SonarSource/sonarqube

@Override
public long stopDebug() {
 return doStopWithoutMessage(LoggerLevel.DEBUG);
}
origin: SonarSource/sonarqube

@Override
public long stopDebug(String message) {
 return doStop(LoggerLevel.DEBUG, message, null, NO_MESSAGE_SUFFIX);
}
origin: SonarSource/sonarqube

@Override
public Profiler startTrace(String message) {
 return doStart(LoggerLevel.TRACE, message);
}
origin: SonarSource/sonarqube

@Override
public long stopTrace() {
 return doStopWithoutMessage(LoggerLevel.TRACE);
}
origin: SonarSource/sonarqube

@Override
public long stopDebug(String message, Object... args) {
 return doStop(LoggerLevel.DEBUG, message, args, NO_MESSAGE_SUFFIX);
}
origin: SonarSource/sonarqube

@Override
public Profiler startDebug(String message) {
 return doStart(LoggerLevel.DEBUG, message);
}
origin: SonarSource/sonarqube

@Override
public long stopInfo(String message) {
 return doStop(LoggerLevel.INFO, message, null, NO_MESSAGE_SUFFIX);
}
origin: SonarSource/sonarqube

@Override
public Profiler startInfo(String message) {
 return doStart(LoggerLevel.INFO, message);
}
origin: SonarSource/sonarqube

@Override
public long stopTrace(String message, Object... args) {
 return doStop(LoggerLevel.TRACE, message, args, NO_MESSAGE_SUFFIX);
}
origin: SonarSource/sonarqube

@Override
public Profiler startTrace(String message, Object... args) {
 return doStart(LoggerLevel.TRACE, message, args);
}
origin: SonarSource/sonarqube

@Override
public long stopError(String message, Object... args) {
 return doStop(LoggerLevel.ERROR, message, args, NO_MESSAGE_SUFFIX);
}
org.sonar.core.util.logs

Most used classes

  • Profiler
  • DefaultProfiler
  • DefaultProfilerTest
  • NullProfiler
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