Pass logger to lib