changed alert levels to PSR LogLevels and fixed issue where the level was always 5