missing include in 'api/components.h' added and cast to severity in 'logger.cpp'
no need for the cast to severity (the generator already outputs valid elements of the severity enum)