com.minlia.rocket.loggable.LoggerFormats Maven / Gradle / Ivy
package com.minlia.rocket.loggable;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
/**
* Logger message formats that can be replaced with the defaults.
There are list of
* placeholder's that can be used: - ${method.name} - method name
- ${method.args} -
* method arguments
- ${method.result} - method results
- ${method.duration} - method
* runtime duration
- ${method.warn.duration} - method runtime warning duration to be
* displayed
- ${error.class.name} - exception class name
- ${error.message} -
* exception message
- ${error.source.class.name} - exception source class name
* - ${error.source.line} - exception source line number that cause the exception
*
* @author will
*/
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class LoggerFormats {
private String enter;
private String warnBefore;
private String warnAfter;
private String after;
private String error;
}