Write formatted string to console with colors