package Ġcom . android . example . cam er ax basic Ċ Ċ import Ġandroid . app . Application Ċ import Ġandroid . util . Log Ċ import Ġandroidx . camera . camera 2 . Camera 2 Config Ċ import Ġandroidx . camera . core . Camera X Config Ċ Ċ /** Ċ Ġ* ĠSet ĠCamera X Ġlogging Ġlevel Ġto ĠLog . ERROR Ġto Ġavoid Ġexcess ive Ġlog cat Ġmessages . Ċ Ġ* ĠRefer Ġto Ġhttps :// developer . android . com / reference / android x / camera / core / Camera X Config . Builder # setMinimum Logging Level ( int ) Ċ Ġ* Ġfor Ġdetails . Ċ Ġ*/ Ċ class ĠMain Application Ġ: ĠApplication (), ĠCamera X Config . Provider Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġget Camera X Config (): ĠCamera X Config Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠCamera X Config . Builder . from Config ( Camera 2 Config . default Config ()) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. setMinimum Logging Level ( Log . ERROR ). build () ĊĠĠĠ Ġ} Ċ }