1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-11-15 13:35:09 -05:00

Log to android debug log instead of standard output

This commit is contained in:
Sebastian Kaspari 2010-03-09 23:20:16 +01:00
parent 6548cbe894
commit 2b2500ee38

View File

@ -29,6 +29,8 @@ import java.util.Enumeration;
import java.util.Hashtable;
import java.util.StringTokenizer;
import android.util.Log;
/**
* PircBot is a Java framework for writing IRC bots quickly and easily.
* <p>
@ -65,6 +67,7 @@ import java.util.StringTokenizer;
* @version 1.4.6 (Build time: Wed Apr 11 19:20:59 2007)
*/
public abstract class PircBot implements ReplyConstants {
public static final String TAG = "Yaaic/PircBot";
/**
* The definitive version number of this release of PircBot.
* (Note: Change this before automatically building releases)
@ -862,7 +865,9 @@ public abstract class PircBot implements ReplyConstants {
*/
public void log(String line) {
if (_verbose) {
System.out.println(System.currentTimeMillis() + " " + line);
// XXX: PircBot Patch: Log to debug log instead of standard output
Log.d(TAG, line);
//System.out.println(System.currentTimeMillis() + " " + line);
}
}