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 9234113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T06:42:49+00:00 2026-06-18T06:42:49+00:00

I want my Mac Os X sandboxed application to write a log file of

  • 0

I want my Mac Os X sandboxed application to write a log file of every action it takes, I think the correct path would be /Users/MyName/Library/Containers/com.me_developer.myAppID/Data/Library/Logs/. I know how to write a file a append text to it, but what I am looking for is to have old log files archived in a manner similar to system log files are written in /var/log , once they reach a certain size, they are renamed, and compressed (bz2). I wonder if Mac Os X or its lower levels UNIX offers a built in solution for that, and so I wouldn’t have to write manually all the code. Thanks.

  • 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-06-18T06:42:50+00:00Added an answer on June 18, 2026 at 6:42 am

    Take a look at asl, which is the API for interacting with the system log facility in Mac OS X (and iOS). It’s a bit low level, in that it’s a C API, but it should do everything you want and does so in an Apple-sanctioned, sandboxing-compatible way.

    There are a number of third-party, open source Objective-C wrappers for ASL. Here are a few examples (I haven’t used any of these, myself):

    https://github.com/AlanQuatermain/aqtoolkit/tree/master/ASLogger
    https://github.com/billgarrison/SOLogger
    https://github.com/nloko/NLOSyslog

    Here’s a couple articles/tutorials about using ASL:

    http://boredzo.org/blog/archives/2008-01-20/why-asl
    http://www.cocoanetics.com/2011/03/accessing-the-ios-system-log/

    Finally, be sure to take a look at Cocoa Lumberjack, which is a very popular Cocoa logging library.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing a lyric application for Mac and I want to add Spotify support
I want to Change the Cursor Image on Mac irrespective of which application is
I want to create an application on a Mac to convert multiple files (txt,
I am displaying Mac Address in a WPF application. I want that mac address
I want to create native Mac OS X application using Cocoa + Objective C
I want to deploy an SWT application on Mac OS X. Since I'm relatively
I have developed a mac application without using sandbox. now i want to send
I want my Mac cocoa application to continuously update the View even if it
I want to write an app communicating between Mac and iPhone. Specifically speaking, I
I want to store SMTP-Data from my Mac OSX application using the keychain. I

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.