Need to specify method when using logger.

Method name needs to be specified when using the logger
object.