function prettifyLevel$1 ({ log, colorizer = defaultColorizer, levelKey = LEVEL_KEY }) {
  if (levelKey in log === false) return undefined
  return colorizer(log[levelKey])
}
Checks if the passed in log has a `level` value and returns a prettified
string for that level if so.

@param {object} input
@param {object} input.log The log object.
@param {function} [input.colorizer] A colorizer function that accepts a level
value and returns a colorized string. Default: a no-op colorizer.
@param {string} [levelKey='level'] The key to find the level under.

@returns {undefined|string} If `log` does not have a `level` property then
`undefined` will be returned. Otherwise, a string from the specified
`colorizer` is returned.