Error log disabling?

Discussion in 'General Support' started by skyhigh, Apr 26, 2012.

  1. skyhigh

    skyhigh Member

    Joined:
    Sep 28, 2010
    Messages:
    298
    Likes Received:
    2
    How do i disable error log and enable only when needed?
     
  2. pani100

    pani100 Well-Known Member

    Joined:
    May 9, 2011
    Messages:
    1,995
    Likes Received:
    349
    Hi skyhigh,
    in includes/common.inc.php
    right at the top

    session_start();
    //$error_reporting = E_ALL^E_NOTICE;//enable to remove Undifined errors
    $error_reporting = E_ALL; // use this for debugging

    Enable which one you want and disable the other.
    If you want to log no messages at all: $error_reporting = 0;
     
  3. skyhigh

    skyhigh Member

    Joined:
    Sep 28, 2010
    Messages:
    298
    Likes Received:
    2
    didnt work got error in my header
     
  4. nay27uk

    nay27uk Super Moderator Staff Member

    Joined:
    Nov 24, 2009
    Messages:
    4,147
    Likes Received:
    303
    just disable both so

    $error_reporting = E_ALL^E_NOTICE;//enable to remove Undifined errors
    $error_reporting = E_ALL; // use this for debugging

    beocomes

    //$error_reporting = E_ALL^E_NOTICE;//enable to remove Undifined errors
    //$error_reporting = E_ALL; // use this for debugging
     
  5. skyhigh

    skyhigh Member

    Joined:
    Sep 28, 2010
    Messages:
    298
    Likes Received:
    2
    didnt work
     
  6. nay27uk

    nay27uk Super Moderator Staff Member

    Joined:
    Nov 24, 2009
    Messages:
    4,147
    Likes Received:
    303
    Not ghot a clue then how webid fills it's error log as far as I know disabling those lines should stop it.
    Try what I said above then delete the error.log from the logs folder
     
    Last edited: Apr 28, 2012
  7. Guest

    Guest Guest

    Disable error log ??
    who want´s running buggy system ?
    except something caused by my own coding of template.
    resulting in couple of error messages
    my log is = Error log is currently empty :)
     
  8. nay27uk

    nay27uk Super Moderator Staff Member

    Joined:
    Nov 24, 2009
    Messages:
    4,147
    Likes Received:
    303
    I agree dahl but each to his own
     

Share This Page