PackageCom.redbull.log;ImportAndroid.util.Log;/*** This is an overriding class (the log rewrite) can finally be normalized (though a small problem, but a good personal habit is important) * *@authorCatherine.brain **/ Public classLogger {/** * * @paramLog wants to remind us of the logs * **/ Public Static voidlog (String log) {//if (buildconfig.debug)LOG.D ("Clockdemo", log); } Public Static voidLogError (String log) {//if (buildconfig.debug)LOG.E ("Clockdemo", log); } Public Static voidlogwarning (String log) {//if (buildconfig.debug)LOG.W ("Clockdemo", log); } Public Static voidlogverbose (String log) {//if (buildconfig.debug)LOG.V ("Clockdemo", log); } Public Static voidLoginfo (String log) {//if (buildconfig.debug)LOG.I ("Clockdemo", log); } /** * * @paramLog * Want to remind us of the logs *@paramfrom * which class or iconic **/ Public Static voidd (string from, string log) {//if (buildconfig.debug)log.d (from, Log); } Public Static voide (string from, string log) {//if (buildconfig.debug)log.e (from, Log); } Public Static voidW (string from, string log) {//if (buildconfig.debug)LOG.W (from, Log); } Public Static voidV (string from, string log) {//if (buildconfig.debug)log.v (from, Log); } Public Static voidI (string from, string log) {//if (buildconfig.debug)log.i (from, Log); }}
I used to ask myself to do the text habit of standardizing lines. However, he has not given himself time. Of course, this is also an excuse. All right. Give yourself a final touches first. By the time, with copy
A momentary Rise of Android logs (compared to regulate self-habits)