My final change makes it easier to set logging levels. The function SetLlevelString() will let you set levels with a case-insensitive string. This is perfect for programs where a log level is passed in as a command line argument.