1. Project Clover database Tue Dec 20 2016 21:24:09 CET
  2. Package org.xwiki.extension.repository.aether.internal.components

File XWikiLogger.java

 

Coverage histogram

../../../../../../../img/srcFileCovDistChart1.png
82% of files have more coverage

Code metrics

0
19
20
1
150
104
20
1.05
0.95
20
1

Classes

Class Line # Actions
XWikiLogger 28 19 0% 20 37
0.0512820525.1%
 

Contributing tests

This file is covered by 1 test. .

Source view

1    /*
2    * See the NOTICE file distributed with this work for additional
3    * information regarding copyright ownership.
4    *
5    * This is free software; you can redistribute it and/or modify it
6    * under the terms of the GNU Lesser General Public License as
7    * published by the Free Software Foundation; either version 2.1 of
8    * the License, or (at your option) any later version.
9    *
10    * This software is distributed in the hope that it will be useful,
11    * but WITHOUT ANY WARRANTY; without even the implied warranty of
12    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13    * Lesser General Public License for more details.
14    *
15    * You should have received a copy of the GNU Lesser General Public
16    * License along with this software; if not, write to the Free
17    * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18    * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
19    */
20    package org.xwiki.extension.repository.aether.internal.components;
21   
22    import org.slf4j.Logger;
23   
24    /**
25    * @version $Id: df8416821224f5b638437451c79b9890f17b541c $
26    * @since 4.0M1
27    */
 
28    class XWikiLogger implements org.codehaus.plexus.logging.Logger
29    {
30    private Logger logger;
31   
 
32  25 toggle public XWikiLogger(Logger logger)
33    {
34  25 this.logger = logger;
35    }
36   
 
37  0 toggle @Override
38    public void debug(String message)
39    {
40  0 this.logger.debug(message);
41    }
42   
 
43  0 toggle @Override
44    public void debug(String message, Throwable throwable)
45    {
46  0 this.logger.debug(message, throwable);
47    }
48   
 
49  0 toggle @Override
50    public void info(String message)
51    {
52  0 this.logger.info(message);
53    }
54   
 
55  0 toggle @Override
56    public void info(String message, Throwable throwable)
57    {
58  0 this.logger.info(message, throwable);
59    }
60   
 
61  0 toggle @Override
62    public void warn(String message)
63    {
64  0 this.logger.warn(message);
65    }
66   
 
67  0 toggle @Override
68    public void warn(String message, Throwable throwable)
69    {
70  0 this.logger.warn(message, throwable);
71    }
72   
 
73  0 toggle @Override
74    public void fatalError(String message)
75    {
76  0 this.logger.error(message);
77    }
78   
 
79  0 toggle @Override
80    public void fatalError(String message, Throwable throwable)
81    {
82  0 this.logger.error(message, throwable);
83    }
84   
 
85  0 toggle @Override
86    public void error(String message)
87    {
88  0 this.logger.error(message);
89    }
90   
 
91  0 toggle @Override
92    public void error(String message, Throwable throwable)
93    {
94  0 this.logger.error(message, throwable);
95    }
96   
 
97  0 toggle @Override
98    public boolean isDebugEnabled()
99    {
100  0 return this.logger.isDebugEnabled();
101    }
102   
 
103  0 toggle @Override
104    public boolean isInfoEnabled()
105    {
106  0 return this.logger.isInfoEnabled();
107    }
108   
 
109  0 toggle @Override
110    public boolean isWarnEnabled()
111    {
112  0 return this.logger.isWarnEnabled();
113    }
114   
 
115  0 toggle @Override
116    public boolean isErrorEnabled()
117    {
118  0 return this.logger.isErrorEnabled();
119    }
120   
 
121  0 toggle @Override
122    public boolean isFatalErrorEnabled()
123    {
124  0 return this.logger.isErrorEnabled();
125    }
126   
 
127  0 toggle @Override
128    public void setThreshold(int treshold)
129    {
130    }
131   
 
132  0 toggle @Override
133    public int getThreshold()
134    {
135  0 return LEVEL_DEBUG;
136    }
137   
 
138  0 toggle @Override
139    public org.codehaus.plexus.logging.Logger getChildLogger(String name)
140    {
141  0 return this;
142    }
143   
 
144  0 toggle @Override
145    public String getName()
146    {
147  0 return "xwiki logger";
148    }
149   
150    }