updated chainloader to use logger, updated logger to allow a GlobalLogLevel