Simple logger function that takes care of prefixes and colored output.