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 * <p>
023 * Disables logging entirely.
024 *
025 * <ul class='seealso'>
026 *    <li class='link'>{@doc juneau-rest-server.LoggingAndDebugging}
027 * </ul>
028 * @deprecated Use {@link RestCallLogger}
029 */
030@Deprecated
031public class NoOpRestLogger extends BasicRestLogger {
032
033   /**
034    * Constructor.
035    */
036   public NoOpRestLogger() {
037      super(null);
038   }
039
040   /**
041    * Log a message to the logger.
042    *
043    * <p>
044    * Subclasses can override this method if they wish to log messages using a library other than Java Logging
045    * (e.g. Apache Commons Logging).
046    *
047    * @param level The log level.
048    * @param cause The cause.
049    * @param msg The message to log.
050    * @param args Optional {@link MessageFormat}-style arguments.
051    */
052   @Override /* RestLogger */
053   public void log(Level level, Throwable cause, String msg, Object...args) {}
054}