Package fr.gouv.vitam.common.performance
Class PerformanceLogger
java.lang.Object
fr.gouv.vitam.common.performance.PerformanceLogger
simple logger to use same logger with same format for all performance time.
To enable it, add
on logback.xml file
-
Method Summary
Modifier and TypeMethodDescriptionstatic PerformanceLogger
void
log performance information with step.void
log performance information with step and action.void
log performance information with step, action and task.void
-
Method Details
-
log
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
- Parameters:
step
-action
-task
-size
- of objecttime
-
-
log
log performance information with step and action.- Parameters:
step
- name of the stepaction
- name of the actiontime
- duration of the treatment
-
log
log performance information with step.- Parameters:
step
- name of the steptime
- duration of the treatment
-
getInstance
- Returns:
- single instance on
PerformanceLogger
-