Can i modify checkpoint message which appears in log when a checkpoint is passed or fail ?
Can i modify checkpoint message which appears in log when a checkpoint is passed or fail ?
I have a object checkpoint say "Test"
when this object checkpoint is passed I get message in log as "The object checkpoint "Test" passed".
My requirement is to modify this message, so that I can specify what is that object "Test" in detail.
Say something like this when Object checkpoint test is passed.
"The checkpoint for number of files passed"
or
"The checkpoint for number of files failed" when checkpoint fails.
I can do this by using if statement
if(object.Test)
log.checkpoint("The checkpoint for number of files passed")
Problem with above code is that it will give me two messages in log.
The object checkpoint "Test" passed.
The checkpoint for number of files passed.
I don't want the first message, as person reading the log file wont understand it.
Is there any way to do it ?