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 * <h5 class='section'>See Also:</h5>
026 * <ul>
027 *    <li class='link'>{@doc juneau-rest-server.LoggingAndErrorHandling}
028 * </ul>
029 */
030public class NoOpRestLogger extends BasicRestLogger {
031
032   /**
033    * Log a message to the logger.
034    *
035    * <p>
036    * Subclasses can override this method if they wish to log messages using a library other than Java Logging
037    * (e.g. Apache Commons Logging).
038    *
039    * @param level The log level.
040    * @param cause The cause.
041    * @param msg The message to log.
042    * @param args Optional {@link MessageFormat}-style arguments.
043    */
044   @Override /* RestLogger */
045   public void log(Level level, Throwable cause, String msg, Object...args) {}
046}