aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-runner-batch-interface/src/main/java/org/sonar/runner/batch/LogOutput.java
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2015-06-25 15:53:51 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2015-06-25 18:01:35 +0200
commitd4feed19cf6c8c8adf7fcdb037436871c962175a (patch)
tree527965c695694bff91a8c5cc70ce78f344103c04 /sonar-runner-batch-interface/src/main/java/org/sonar/runner/batch/LogOutput.java
parent8d8bc9bf3d4964f71e9c0e0d719ad1416ba8c16a (diff)
downloadsonar-scanner-cli-d4feed19cf6c8c8adf7fcdb037436871c962175a.tar.gz
sonar-scanner-cli-d4feed19cf6c8c8adf7fcdb037436871c962175a.zip
SONARUNNER-141 Remove forked mode
Diffstat (limited to 'sonar-runner-batch-interface/src/main/java/org/sonar/runner/batch/LogOutput.java')
-rw-r--r--sonar-runner-batch-interface/src/main/java/org/sonar/runner/batch/LogOutput.java33
1 files changed, 33 insertions, 0 deletions
diff --git a/sonar-runner-batch-interface/src/main/java/org/sonar/runner/batch/LogOutput.java b/sonar-runner-batch-interface/src/main/java/org/sonar/runner/batch/LogOutput.java
new file mode 100644
index 0000000..f17eb55
--- /dev/null
+++ b/sonar-runner-batch-interface/src/main/java/org/sonar/runner/batch/LogOutput.java
@@ -0,0 +1,33 @@
+/*
+ * SonarQube Runner - Batch Interface
+ * Copyright (C) 2011 SonarSource
+ * dev@sonar.codehaus.org
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
+ */
+package org.sonar.runner.batch;
+
+/**
+ * Allow to redirect batch logs to a custom output. By defaults logs are written to System.out
+ * @since 5.2
+ */
+public interface LogOutput {
+
+ void log(String formattedMessage, Level level);
+
+ enum Level {
+ ERROR, WARN, INFO, DEBUG, TRACE;
+ }
+}