src: Implement module for dynamic logging functionality