What if the output is redirected to a file? there's no width then.
Also, calling this every time anything gets logged is a waste. But then, what if the window is resized?