Implement error, warning and info functions.

Signed-off-by: Thiago Farina <tfarina@chromium.org>