Results 1 to 3 of 3

Thread: Enable logging in shared server environment

  1. #1
    ajcryan is offline Member
    Join Date
    Feb 2009
    Posts
    7

    Question Enable logging in shared server environment

    I have installed 5.2.0a Community Edition on a shared server environment. I had the hosting company change ownership and permissions on the application root directory to the apache user. I subsequently found that there was no log4php.properties file in the application root folder. I created this file myself
    Code:
    log4php.appender.A2=LoggerAppenderRollingFile
    log4php.appender.A2.MaxFileSize=10MB
    log4php.appender.A2.MaxBackupIndex=5
    log4php.appender.A2.layout=LoggerLayoutTTCC
    log4php.appender.A2.layout.ContextPrinting="true"
    log4php.appender.A2.layout.DateFormat="%c"
    log4php.appender.A2.File=./sugarcrm.log
       
    //log4php.rootLogger=fatal, A2
    //log4php.rootLogger=error, A2
    //log4php.rootLogger=warn, A2
    log4php.rootLogger=info, A2
    //log4php.rootLogger=debug, A2
    but the sugarcrm.log file is not being updated. Does this file require apache ownership/ executable permissions?

  2. #2
    sanjaykatiyar1's Avatar
    sanjaykatiyar1 is offline Sugar Community Member
    Join Date
    Feb 2006
    Location
    Bangalore
    Posts
    600

    Default Re: Enable logging in shared server environment

    As such Sugar is not using log4php.properties file anymore.
    To record the logging into sugarcrm.log change the 'config.php' file:
    'logger' =>
    array (
    'level' => 'info',
    ....
    ....

    By default this is set to fatal.
    Sanjay Katiyar
    iPhone and Android solutions http://www.apptility.com

  3. #3
    ajcryan is offline Member
    Join Date
    Feb 2009
    Posts
    7

    Default Re: Enable logging in shared server environment

    Hooray! That worked just fine.

    Thanks very much Sanjay!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Enable Logging
    By vidtechsteve in forum Help
    Replies: 12
    Last Post: 2009-11-09, 02:54 PM
  2. Hosted/Shared Server Environment
    By kguarino in forum Help
    Replies: 7
    Last Post: 2009-11-02, 04:29 PM
  3. Installing SugarCRM in a shared hosting environment
    By vantagejuan in forum Installation and Upgrade Help
    Replies: 3
    Last Post: 2009-01-26, 11:24 PM
  4. Enable Logging in SugarCRM Windows instance
    By doraih in forum Developer Help
    Replies: 0
    Last Post: 2007-05-21, 01:36 PM
  5. Hosted/Shared Server Environment
    By kguarino in forum Help
    Replies: 0
    Last Post: 2006-07-14, 05:50 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •