Package fr.gouv.vitam.common.performance
Class PerformanceLogger
- java.lang.Object
-
- fr.gouv.vitam.common.performance.PerformanceLogger
-
public class PerformanceLogger extends java.lang.Object
simple logger to use same logger with same format for all performance time. To enable it, addon logback.xml file
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PerformanceLogger
getInstance()
void
log(java.lang.String step, long time)
log performance information with step.void
log(java.lang.String step, java.lang.String action, long time)
log performance information with step and action.void
log(java.lang.String step, java.lang.String action, java.lang.String task, long time)
log performance information with step, action and task.void
log(java.lang.String step, java.lang.String action, java.lang.String task, long size, long time)
-
-
-
Method Detail
-
log
public void log(java.lang.String step, java.lang.String action, java.lang.String task, long time)
log performance information with step, action and task.- Parameters:
step
- name of the stepaction
- name of the actiontask
- optional, use to log a treatment or a part of treatmenttime
- duration of the treatment
-
log
public void log(java.lang.String step, java.lang.String action, java.lang.String task, long size, long time)
- Parameters:
step
-action
-task
-size
- of objecttime
-
-
log
public void log(java.lang.String step, java.lang.String action, long time)
log performance information with step and action.- Parameters:
step
- name of the stepaction
- name of the actiontime
- duration of the treatment
-
log
public void log(java.lang.String step, long time)
log performance information with step.- Parameters:
step
- name of the steptime
- duration of the treatment
-
getInstance
public static PerformanceLogger getInstance()
- Returns:
- single instance on
PerformanceLogger
-
-