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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:38:32+00:00 2026-05-27T23:38:32+00:00

I have a large enterprise scale php app with lots of calls to error_log.

  • 0

I have a large enterprise scale php app with lots of calls to error_log.

I think, at times, when exceptions are being thrown, the error log fills up the disk an causes server issues.

How can I better utilize my logging utilities in php? In particular I don’t know much about how the error_log functionalith of php is managed and used in the real world.

Are there other logging mechanisms that are more appropriate? Like an info_log or a log expiration utility that will delete/rotate log files once they get too large? Finally, can I have multiple log files?

  • 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-27T23:38:32+00:00Added an answer on May 27, 2026 at 11:38 pm

    In my opinion, error_log is good enough and provide us with sufficient functionality. Yes you can have multiple log files, you just need to manage them.:)
    For example, you can use something like this:

    ini_set('error_log','my_error_file.log');
    

    And about auto deleting thing, I think there is no advantage of using error_log, if you really want to do auto delete. You should rather dump them somewhere, or just turn logging off/minimal using error_reporting in php.ini.

    And finally, you can write your own logging class, which is really very simple and fantastic solution, because it will be very short snippet of code, and can really work according to your will. I usually do the same.
    Thanks 🙂

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

Sidebar

Related Questions

On large-scale Java/.Net Enterprise projects, does every developer need to have all the components/libraries/dependencies
We have a large enterprise consisting of many apps both old and new backed
We have a large enterprise application where projects are scoped designed and finally coded
I have custom coded several enterprise applications for mid to large organizations to use
I'm developing a website in PHP and I have large JS files that I
We have a very large enterprise Web application developed using Mojave (MVC) framework in
I have two very large enterprise tables in an Oracle 10g database. One table
I want to build an enterprise application that will have very large number of
We are using SQL Server 2008 Enterprise version. We have a large table FooTable
Consider I want to develop a large enterprise application. In my application I have

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.