Added init function to the logger