mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-09 05:24:44 +01:00
add logdf, logging for DEBUG builds only
This commit is contained in:
parent
a612a89ac6
commit
cfa101350a
1 changed files with 8 additions and 0 deletions
|
@ -78,6 +78,14 @@ public class DbgUtils {
|
|||
}
|
||||
} // logf
|
||||
|
||||
public static void logdf( String format, Object... args )
|
||||
{
|
||||
if ( s_doLog && BuildConfig.DEBUG ) {
|
||||
Formatter formatter = new Formatter();
|
||||
logf( formatter.format( format, args ).toString() );
|
||||
}
|
||||
} // logdf
|
||||
|
||||
public static void showf( Context context, String format, Object... args )
|
||||
{
|
||||
Formatter formatter = new Formatter();
|
||||
|
|
Loading…
Reference in a new issue