@attr_item_call_auto_cache<EOL>def log(color):
foreground = fg(color)<EOL>return lambda msg: print(foreground(msg))<EOL>
Function factory for foreground-colored loggers (printers).

The ``log.color(msg)`` and ``print(fg.color(msg))`` are the
same. On Windows, the ANSI escape codes for colors are mapped to
``SetConsoleTextAttribute`` Windows Console Handles API function
calls by the ``colorama`` package.

https://msdn.microsoft.com/library/windows/desktop/ms686047

The colorama initialization is on the ``dose.__main__`` module.
See ``fg`` for more information.