Logging function initialization