Define a logger instance method if one is not provided