lib/logging.js
function log(logger, message, type) {
  if(!logger) return
  if(logger.toConsole) {
    if (console.group) console.group('i18n-tag-schema')
    const log = console[type] || console.log
    log(message)
    if (console.groupEnd) console.groupEnd()
  } else {
    const log = logger[type]
    if(log) log(message)
  }
}
function log(logger, message, type) {
  if(!logger) return
  if(logger.toConsole) {
    if (console.group) console.group('i18n-tag-schema')
    const log = console[type] || console.log
    log(message)
    if (console.groupEnd) console.groupEnd()
  } else {
    const log = logger[type]
    if(log) log(message)
  }
}
function log ( logger , message , type ) { if ( ! logger ) return if ( logger . toConsole ) { if ( console . group ) console . group ( 'i18n-tag-schema' ) const log = console [ type ] || console . log log ( message ) if ( console . groupEnd ) console . groupEnd ( ) } else { const log = logger [ type ] if ( log ) log ( message ) } }
Logging helper function

@param {Object} logger - The logger object.
@param {any} message - The message to log.
@param {string} [type=log] - The type of the log function.
Logging helper function