Pass severity to log functions

For cases where you're using LOG_LEVEL_ALL, or you're using the same log function for several levels, it would be nice to be able to distinguish between different levels within the logging function.