javadoc
Extracted a log method.