Add log, warn, and error functions