Reputation: 1004
I don't have any knowledge about the log files. what are log files and how can we create a log in android? Please help me out in creating log files.
Upvotes: 0
Views: 2139
Reputation: 2631
As others mentioned you can use the logcat to look at the logs. If you want your own logs, you need print to the Logger. Use android.Util.Log for that.
Upvotes: 3
Reputation: 1162
eclipse=>window=>show view=>other=>Android=>Log Cat(select)
Yes the above answer is correct, once you choose that above option one window will be added to your prospective beside console. and when ever you run your application in the emulator the LOGCAT window will show all the debug and error related statements in it.. It is very useful to work with android.
You can also collect log in the real android device also using Log Collecter free application which is available in android market.. Using this application you can trace out the problems in your application.
Later on you can send collected log to email also through which you can identify problem in the real device.
Upvotes: 2
Reputation: 2795
Android will generate it's own log file whenever you run app then log will file is generated. just go to eclipse=>window=>show view=>other=>Android=>Log Cat(select) that now you can see the logs which are generated.
Upvotes: 0