// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
package jul;

import java.util.logging.LogRecord;
import java.util.logging.SimpleFormatter;

public class IndentSimpleFormatter extends SimpleFormatter {
    @Override
    public String format(LogRecord rec) {
        return super.format(rec).replaceAll("\r\n(?!$)", "\r\n    ");
    }
}
