Added functions to change log output level, close a FileLogger, and fixed a bug in FileLogger