Action log message convention ?
Tom Zeller
tzeller at dragonacea.biz
Tue Feb 4 19:11:55 EST 2014
Actions commonly validate context availability in doPreExecute(), what
log message convention do we like ?
"No <childContext>"
"No <childContext> available"
"No <childContext> available within <parentContext>"
"No <childContext> in <parentContext>"
"No <childContext> located in <parentContext>"
Other ?
The code I am referring to looks like :
doPreExecute() {
ChildContext childCtx = parentCtx.getSubcontext(ChildContext.class);
if (childCtx == null) {
log.debug("{} <convention>", getLogPrefix());
return false;
}
I tend to prefer the shortest, "No <childContext>", but maybe that is too short.
More information about the dev
mailing list