aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-home
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2015-06-16 17:37:13 +0200
committerDuarte Meneses <duarte.meneses@sonarsource.com>2015-06-23 15:15:25 +0200
commit792d7eb799efc25d92adcf059acc4c7c9f67d2c7 (patch)
treeecf24200abe9a1586a35893297743004ebc9193d /sonar-home
parenteba86f1a7feca56d8b39ec7baa6f105eef0fef91 (diff)
downloadsonarqube-792d7eb799efc25d92adcf059acc4c7c9f67d2c7.tar.gz
sonarqube-792d7eb799efc25d92adcf059acc4c7c9f67d2c7.zip
SONAR-6648 Allow to redirect logs to a custom stream
Diffstat (limited to 'sonar-home')
-rw-r--r--sonar-home/src/main/java/org/sonar/home/log/LogListener.java28
1 files changed, 28 insertions, 0 deletions
diff --git a/sonar-home/src/main/java/org/sonar/home/log/LogListener.java b/sonar-home/src/main/java/org/sonar/home/log/LogListener.java
new file mode 100644
index 00000000000..9ce4b8c668e
--- /dev/null
+++ b/sonar-home/src/main/java/org/sonar/home/log/LogListener.java
@@ -0,0 +1,28 @@
+/*
+ * SonarQube, open source software quality management tool.
+ * Copyright (C) 2008-2014 SonarSource
+ * mailto:contact AT sonarsource DOT com
+ *
+ * SonarQube 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.
+ *
+ * SonarQube 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 02110-1301, USA.
+ */
+package org.sonar.home.log;
+
+public interface LogListener {
+ public void log(String msg, Level level);
+
+ public static enum Level {
+ ERROR, WARN, INFO, DEBUG, TRACE;
+ }
+}