//Prevayler(TM) - The Free-Software Prevalence Layer.
//Copyright (C) 2001-2004 Klaus Wuestefeld
//This library 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.
//Contributions: Jacob Kjome

package org.prevayler.foundation.monitor;

import java.io.File;

/**
 * Abstract Monitor for Logging implementation monitors to extend.
 */
public abstract class LoggingMonitor implements Monitor {

    public void notify(Class clazz, String message) {
        if (isInfoEnabled(clazz)) info(clazz, message);
	}

	public void notify(Class clazz, String message, Exception ex) {
		error(clazz, message, ex);
	}

	public void notify(Class clazz, String message, File file) {
		if (isInfoEnabled(clazz)) info(clazz, message + "/nFile: " + file);
	}

	public void notify(Class clazz, String message, File file, Exception ex) {
		error(clazz, message + "/nFile: " + file, ex);
    }

    protected abstract void info(Class clazz, String Message);

    protected abstract void error(Class clazz, String message, Exception ex);

    /**
     * default returns true. Override as needed.
     */
    protected boolean isInfoEnabled(Class clazz) {
        return true;
    }
}

@@ -818,33 +818,33 @@
 azz, message + %22
-/
+%5C
 nFile: %22 + file)
@@ -951,17 +951,17 @@
 sage + %22
-/
+%5C
 nFile: %22

re-fix the the instances of "/n" to "\\n", this time without code reformating.