Added severity levels for logging and optional listening levels for streams.