move log level parse to app utility