Add logger to environment