added documentation for logging