code: func ioOutputFormatClassColor(ld *LineData, b *bytes.Buffer) error {
  	switch ld.Class {
  	case TRACE:
  		_, err := b.Write(ioOutputColorMap["crazy"])
  		return err
  	case DEBUG:
  		_, err := b.Write(ioOutputColorMap["half-crazy"])
  		return err
  	case INFO:
  		_, err := b.Write(ioOutputColorMap["cyan"])
  		return err
  	case WARN:
  		_, err := b.Write(ioOutputColorMap["yellow"])
  		return err
  	case ERROR:
  		_, err := b.Write(ioOutputColorMap["red"])
  		return err
  	case FATAL:
  		_, err := b.Write(ioOutputColorMap["magenta"])
  		return err
  	}
  	_, err := b.Write(ioOutputColorMap["default"])
  	return err
  }
docs: // Formatting function used to implement the %color:class% code.