Results 1 to 6 of 6

Thread: log directory

  1. #1
    yongitz is offline Junior Member
    Join Date
    Dec 2005
    Posts
    3

    Angry log directory

    hi every1!!! just wanna ask where is d default directory for sugarcrm??? i just select the default but when i try to look for it.. there's no such thing as log directory... any help wud be greatly appreciated.. tnx!!!

  2. #2
    stevec is offline Sugar Community Member
    Join Date
    Oct 2005
    Location
    London
    Posts
    1,100

    Default Re: log directory

    By default, look for sugarcrm.log in the root directory of the sugracrm website/server/

    On linux, it'll be something like /var/www/sugarcrm, on ISS, something like c:\inetpub\wwwroot\sugarcrm

  3. #3
    yongitz is offline Junior Member
    Join Date
    Dec 2005
    Posts
    3

    Default Re: log directory

    tnx. but i did that already and i cant the log file.. btw.. im using linux.. tnx agen..
    Last edited by yongitz; 2005-12-08 at 01:53 AM.

  4. #4
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: log directory

    You should have a file called log4php.properties. It will look like this.

    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=info, A2
       //log4php.rootLogger=debug, A2
    comment out the log4php.rootLogger=fatal, A2 and uncomment one of the others.

    error = little log
    info = bigger log
    debug = massive log
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  5. #5
    yongitz is offline Junior Member
    Join Date
    Dec 2005
    Posts
    3

    Default Re: log directory

    after doing that i can check the sugarcrm.log in the my sugarcrm directory?? k.. thank u very much

  6. #6
    aardvarkads is offline Sugar Community Member
    Join Date
    Feb 2005
    Location
    North Carolina, US
    Posts
    50

    Default Re: log directory

    By default the logger writes to sugarcrm.log at the root of sugar's html directory. If you don't see this file, you may need to create it and make sure permissions are set correctly to write to it. Depending on your root ownership/permissions this file may not be created "automatically".

    Code:
      touch sugarcrm.log
      chown apache sugarcrm.log
      chmod 644 sugarcrm.log
    "apache" is typically the owner, but it may be "nobody" or some other user. ls -la and see who owns the "custom", "cache", "data" or "modules" directories. chown to this user.

    Mike
    --
    Michael Finger
    Aardvark Application Development Services
    http://www.aardvarkads.com

Thread Information

Users Browsing this Thread

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

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
  •