View Javadoc
1   /*
2    * Copyright 2012 oracle Corporation. All Rights Reserved.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *    http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  
17  package com.fatwire.gst.foundation.facade.logging;
18  
19  /**
20   * Extension of commons logging to allow for log messages with arbitrary number of arguments, elleviating the developer from string concatenation and level checking to prevent expensive string contatenation.    
21   * 
22   * @author Dolf Dijkstra
23   *
24   */
25  public interface Log extends org.apache.commons.logging.Log {
26  
27      public void trace(String message, Throwable t, Object... args);
28  
29      public void trace(String message, Object... args);
30  
31      public void debug(String message, Throwable t, Object... args);
32  
33      public void debug(String message, Object... args);
34  
35      public void info(String message, Throwable t, Object... args);
36  
37      public void info(String message, Object... args);
38  
39      public void warn(String message, Throwable t, Object... args);
40  
41      public void warn(String message, Object... args);
42  
43      public void error(String message, Throwable t, Object... args);
44  
45      public void error(String message, Object... args);
46  
47      public void fatal(String message, Throwable t, Object... args);
48  
49      public void fatal(String message, Object... args);
50  
51  }