Use log to give more information about invalid uses of the library