/*
 *  Licensed to the Apache Software Foundation (ASF) under one or more
 *  contributor license agreements.  See the NOTICE file distributed with
 *  this work for additional information regarding copyright ownership.
 *  The ASF licenses this file to You under the Apache License, Version 2.0
 *  (the "License"); you may not use this file except in compliance with
 *  the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package edu.brandeis.cs.steele.util;

import java.util.logging.*;
/**
 */
public final class InfoOnlyFormatter extends SimpleFormatter {
  @Override public String format(final LogRecord record) {
    return new StringBuilder().
      append(String.format("%-7s", record.getLevel())).
      append(" ").
      //append(record.getSourceClassName()).append(" ").
      append(simplifyClassName(record.getSourceClassName())).append(".").
      append(record.getSourceMethodName()).append("() ").
      append(record.getMessage()).
      append("\n").toString();
  }
  @Override public String getHead(final Handler h) { return ""; }
  @Override public String getTail(final Handler h) { return ""; }
  static String simplifyClassName(String fullClassName) {
    final int idx = fullClassName.lastIndexOf(".");
    return fullClassName.substring(idx + 1);
  }
}


@@ -873,10 +873,95 @@
 ing.
-*;
+Handler;%0Aimport java.util.logging.LogRecord;%0Aimport java.util.logging.SimpleFormatter;%0A
 %0A/**
@@ -1031,32 +1031,34 @@
 er %7B%0A  @Override
+%0A 
  public String f
@@ -1186,27 +1186,27 @@
      append(
-%22 %22
+' '
 ).%0A      //a
@@ -1251,11 +1251,11 @@
 end(
-%22 %22
+' '
 ).%0A 
@@ -1321,19 +1321,19 @@
 .append(
-%22.%22
+'.'
 ).%0A     
@@ -1437,12 +1437,12 @@
 end(
-%22%5Cn%22
+'%5Cn'
 ).to
@@ -1458,32 +1458,34 @@
 %0A  %7D%0A  @Override
+%0A 
  public String g
@@ -1534,16 +1534,18 @@
 Override
+%0A 
  public 
@@ -1699,11 +1699,11 @@
 xOf(
-%22.%22
+'.'
 );%0A 

convert to slf4j