added showUsingLogs to use function, default is false.