Wrap logger to only use chef logger if chef is around