initial Logger constructor and middlware module