Thank you all.
But...where is that log file? 'cause in cant find it anywhere...

On Mon, May 18, 2009 at 9:31 PM, fadden <fad...@android.com> wrote:

>
> On May 18, 10:35 am, Raphael <r...@android.com> wrote:
> > On Mon, May 18, 2009 at 10:17 AM, Rafa Perfeito <rafa.perfe...@gmail.com>
> wrote:
> > > Here's a real beginner question:
> > > Im using Eclipse IDE with the android SDK. Where does the
> > > 'system.out.println' printing goes? to the console? 'cause it is not
> > > going...
> >
> > It goes nowhere. Don't use it. Use android.utils.Log for all your
> > logging needs, which will be available in logcat.
>
> Actually, System.out and System.err should get redirected to the log
> file.
>
> See frameworks/base/core/java/com/android/internal/os/
> RuntimeInit.java, zygoteInit(), where it does:
>
>        System.setOut(new AndroidPrintStream(Log.INFO, "System.out"));
>        System.setErr(new AndroidPrintStream(Log.WARN, "System.err"));
>
> The stdin/stdout/stderr file descriptors are redirected to /dev/null
> during app framework startup, so a printf() from native code won't do
> anything.
>
> The android.util.Log calls are preferred, since you can tag the
> messages from your app and filter them.
>
> >
>


-- 
Cumprimentos,

Hugo Rafael Augusto

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to