1. Project Clover database Tue Dec 20 2016 21:24:09 CET
  2. Package org.xwiki.logging.event

File BeginLogEvent.java

 

Coverage histogram

../../../../img/srcFileCovDistChart8.png
54% of files have more coverage

Code metrics

0
3
4
1
81
24
4
1.33
0.75
4
1

Classes

Class Line # Actions
BeginLogEvent 32 3 0% 4 2
0.7142857371.4%
 

Contributing tests

This file is covered by 112 tests. .

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.logging.event;
21   
22    import org.slf4j.Marker;
23    import org.xwiki.logging.LogLevel;
24    import org.xwiki.observation.event.BeginEvent;
25   
26    /**
27    * The beginning of a group of logs.
28    *
29    * @version $Id: e8d06083b52d02ea8f7fd359f6ae44706048bac1 $
30    * @since 5.4RC1
31    */
 
32    public class BeginLogEvent extends LogEvent implements BeginEvent
33    {
34    /**
35    * Serialization identifier.
36    */
37    private static final long serialVersionUID = 1L;
38   
39    /**
40    * Matches any {@link LogEvent}.
41    */
 
42  48 toggle protected BeginLogEvent()
43    {
44   
45    }
46   
47    /**
48    * @param logEvent the log event to copy
49    */
 
50  9 toggle public BeginLogEvent(LogEvent logEvent)
51    {
52  9 super(logEvent);
53    }
54   
55    /**
56    * @param marker the log marker
57    * @param level the log level
58    * @param message the log message
59    * @param argumentArray the event arguments to insert in the message
60    * @param throwable the throwable associated to the event
61    */
 
62  0 toggle public BeginLogEvent(Marker marker, LogLevel level, String message, Object[] argumentArray, Throwable throwable)
63    {
64  0 super(marker, level, message, argumentArray, throwable);
65    }
66   
67    /**
68    * @param marker the log marker
69    * @param level the log level
70    * @param message the log message
71    * @param argumentArray the event arguments to insert in the message
72    * @param throwable the throwable associated to the event
73    * @param timeStamp the number of milliseconds elapsed from 1/1/1970 until logging event was created.
74    * @since 6.4M1
75    */
 
76  1115 toggle public BeginLogEvent(Marker marker, LogLevel level, String message, Object[] argumentArray, Throwable throwable,
77    long timeStamp)
78    {
79  1115 super(marker, level, message, argumentArray, throwable, timeStamp);
80    }
81    }