def console(message, color='blue'):
    """
	Allows user-friend console logging using ANSI escape codes.

	Parameters
	----------
	message : :class:`str`
		Message to send to console.
	color : :class:`str`
		Name of color or ANSI escape event to use.

	Returns
	-------
	result : :class:`str`
		ANSI escape code.

	Examples
	--------
	>>> console(self, message, color='blue)

	Notes
	-----
	Colors are produced using ASCII Oct format. For example: '`[40m`. See http://jafrog.com/2013/11/23/colors-in-terminal.html
	for more.
	"""
    _c = dict(black='40m', red='41m', green='42m', orange='43m', purple=
        '45m', blue='46m', grey='47m')
    result = '\x1b[' + _c[color] + message + '\x1b[0m'
    return print(result)
