refactored access logging functionality. implemented AccessLogger class