Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7572145
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T15:51:06+00:00 2026-05-30T15:51:06+00:00

On Android I am using the android.util.Log to log within my application and during

  • 0

On Android I am using the android.util.Log to log within my application and during development I am using the adb logcat or Eclipse to see the logs – I use it even more then debugging…

On device I can save the logfile from my code or use some application form Android Market to save the logs – e.g. aLogCat.

Now can I do the same on the iPhone? I can use the NSLog(@"message");, but can I easily save the log file from my application and access it? Are there any ways for that?

Regards,
STeN

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T15:51:08+00:00Added an answer on May 30, 2026 at 3:51 pm

    This is from NSFoundation reference

    NSLog:

    Simply calls NSLogv, passing it a variable number of arguments.

    NSLogv:

    Logs an error message to the Apple System Log facility (see man 3 asl). If the STDERR_FILENO file descriptor has been redirected away from the default or is going to a tty, it will also be written there. If you want to direct output elsewhere, you need to use a custom logging facility.

    Thus, it is only a matter of redirecting the file-descriptor “stderr” (2) to a custom file, and you will get everything that you print using NSLog in that file.

    This seems to be exactly what you want.

    Note that if you want to get logs on console when you are connected to the debugger, you can wrap your code around this to avoid redirection in this case:

    if (!isatty(STDERR_FILENO)) { // Not connected to any terminal
        // your redirection code
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using android.util.Log for logging purposes in my Android application. In short my
Is it possible to display the log messages (which I print using android.util.Log )
I'm trying to learn to use xml in Java (Android platform, using Eclipse and
I am using below code. import android.app.Activity; import android.os.Bundle; import android.provider.ContactsContract.Data; import android.util.Log; public
I made an android project using eclipse. It looks like: src/ ActivityMain.java lib/ Square.java
I have an Android application that displays a list of names using checkboxes. I
I'm having some errors with my custom recording application using android. I saw most
I have starting learning Java and android application development side-by-side. Currently, I a String-array
I'm new to using logcat and debugging in Android. I've analyzing someone else's code
I was reading over at the Android development website about using reflections. But I'm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.