OpenGrokLogger.java revision 1190
340N/A * See LICENSE.txt included in this distribution for the specific
340N/A * file and include the License file at LICENSE.txt.
340N/A@SuppressWarnings({"PMD.MoreThanOneLogger", "PMD.SystemPrintln", "PMD.AvoidThrowingRawExceptionTypes"})
340N/Apublic final class OpenGrokLogger {
if (h instanceof ConsoleHandler) {
return consoleLevel;
e.hasMoreElements();) {
h = l.getHandlers();
if (h instanceof FileHandler) {
return fileLevel;
if (h instanceof FileHandler) {
public static String setupLogger(String logpath, Level filelevel, Level consolelevel) throws IOException {
return logpath;
private static void clearForeignHandlers() {
e.hasMoreElements();) {
l.removeHandler(h[i]);
h = l.getHandlers();
private OpenGrokLogger() {