advanced console (task 3 in advanced functions)

writes messages, errors and warnings with and without string format