Clover icon

sunshower-core

  1. Project Clover database Fri Apr 6 2018 03:27:42 UTC
  2. Package io.sunshower.service.task.exec

File TaskLogEvent.java

 

Coverage histogram

../../../../../img/srcFileCovDistChart5.png
36% of files have more coverage

Code metrics

0
7
5
1
32
25
5
0.71
1.4
5
1

Classes

Class Line # Actions
TaskLogEvent 6 7 5
0.550%
 

Contributing tests

This file is covered by 11 tests. .

Source view

1    package io.sunshower.service.task.exec;
2   
3    import io.sunshower.service.model.task.TaskEvent;
4    import java.util.logging.Level;
5   
 
6    public class TaskLogEvent extends TaskEvent {
7    final Level level;
8    final String template;
9    final Object[] arguments;
10   
 
11  286 toggle public TaskLogEvent(Level level, String format, Object... args) {
12  286 this.level = level;
13  287 this.template = format;
14  291 this.arguments = args;
15    }
16   
 
17  178 toggle public String toString() {
18  179 return String.format("%s: %s", level, String.format(template, arguments));
19    }
20   
 
21  0 toggle public Level getLevel() {
22  0 return level;
23    }
24   
 
25  0 toggle public String getTemplate() {
26  0 return template;
27    }
28   
 
29  0 toggle public Object[] getArguments() {
30  0 return arguments;
31    }
32    }