001/* 002 * Copyright 2002-2018 the original author or authors. 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * https://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016 017package org.apache.commons.logging.impl; 018 019/** 020 * Originally a simple Commons Logging provider configured by system properties. 021 * Deprecated in {@code spring-jcl}, effectively equivalent to {@link NoOpLog}. 022 * 023 * <p>Instead of instantiating this directly, call {@code LogFactory#getLog(Class/String)} 024 * which will fall back to {@code java.util.logging} if neither Log4j nor SLF4J are present. 025 * 026 * @author Juergen Hoeller (for the {@code spring-jcl} variant) 027 * @since 5.0 028 * @deprecated in {@code spring-jcl} (effectively equivalent to {@link NoOpLog}) 029 */ 030@Deprecated 031@SuppressWarnings("serial") 032public class SimpleLog extends NoOpLog { 033 034 public SimpleLog(String name) { 035 super(name); 036 System.out.println(SimpleLog.class.getName() + " is deprecated and equivalent to NoOpLog in spring-jcl. " + 037 "Use a standard LogFactory.getLog(Class/String) call instead."); 038 } 039 040}