Add (smart) logging facility