Development PHP: Logging: How to?

Discussion in 'Software' started by jezmck, 16 Aug 2006.

  1. jezmck

    jezmck Minimodder

    Joined:
    25 Sep 2003
    Posts:
    4,456
    Likes Received:
    36
    I'm coming to the end of a project and am thinking about adding some logging functionality.
    I'd like to write some stuff to file (or DB) and more serious errors should email me.

    Are there any standard (/easy) ways of doing this?

    This is for my work web app, hosted by dreamhost (so afaik I can't edit php.ini!).
     
  2. DougEdey

    DougEdey I pwn all your storage

    Joined:
    5 Jul 2005
    Posts:
    13,933
    Likes Received:
    33
    Does dreamhost not have a php log? You should be able to have some kind of a script which you can request that they run which scans the error logs.

    Otherwise, if you mean "serious" errors like die(), get it to run a function which emails the error to you.
     
  3. Hwulex

    Hwulex What's a Dremel?

    Joined:
    1 Feb 2002
    Posts:
    4,007
    Likes Received:
    1
  4. simon w

    simon w What's a Dremel?

    Joined:
    3 Nov 2003
    Posts:
    1,302
    Likes Received:
    0
  5. FuzzyOne

    FuzzyOne

    Joined:
    19 Sep 2002
    Posts:
    1,823
    Likes Received:
    32
  6. RTT

    RTT #parp

    Joined:
    12 Mar 2001
    Posts:
    14,120
    Likes Received:
    74

Share This Page