Rotating logging with different importance levels