Write logs configuration only when the module is enabled