001// ***************************************************************************************************************************
002// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.  See the NOTICE file *
003// * distributed with this work for additional information regarding copyright ownership.  The ASF licenses this file        *
004// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance            *
005// * with the License.  You may obtain a copy of the License at                                                              *
006// *                                                                                                                         *
007// *  http://www.apache.org/licenses/LICENSE-2.0                                                                             *
008// *                                                                                                                         *
009// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an  *
010// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the License for the        *
011// * specific language governing permissions and limitations under the License.                                              *
012// ***************************************************************************************************************************
013package org.apache.juneau.rest;
014
015
016import java.text.*;
017import java.util.logging.*;
018
019/**
020 * Logging utility class.
021 *
022 * <div class='warn'>
023 *    <b>Deprecated</b> - Use {@link RestCallLogger}
024 * </div>
025 *
026 * <p>
027 * Disables logging entirely.
028 *
029 * <ul class='seealso'>
030 *    <li class='link'>{@doc RestLoggingAndDebugging}
031 * </ul>
032 */
033@Deprecated
034public class NoOpRestLogger extends BasicRestLogger {
035
036   /**
037    * Constructor.
038    */
039   public NoOpRestLogger() {
040      super(null);
041   }
042
043   /**
044    * Log a message to the logger.
045    *
046    * <p>
047    * Subclasses can override this method if they wish to log messages using a library other than Java Logging
048    * (e.g. Apache Commons Logging).
049    *
050    * @param level The log level.
051    * @param cause The cause.
052    * @param msg The message to log.
053    * @param args Optional {@link MessageFormat}-style arguments.
054    */
055   @Override /* RestLogger */
056   public void log(Level level, Throwable cause, String msg, Object...args) {}
057}