src/log.js
function prepMessage (state, level, namespace, message) {
  if (_.isString(message)) {
    const formatArgs = Array.prototype.slice.call(arguments, 3)
    message = format.apply(null, formatArgs)
  }
  log(state, level, namespace, message)
}
function prepMessage (state, level, namespace, message) {
  if (_.isString(message)) {
    const formatArgs = Array.prototype.slice.call(arguments, 3)
    message = format.apply(null, formatArgs)
  }
  log(state, level, namespace, message)
}
function prepMessage ( state , level , namespace , message ) { if ( _ . isString ( message ) ) { const formatArgs = Array . prototype . slice . call ( arguments , 3 ) message = format . apply ( null , formatArgs ) } log ( state , level , namespace , message ) }
handles message format if necessary before calling the actual log function to emit
handles message format if necessary before calling the actual log function to emit