Re: WebCat Error Log problem (2.0.1, acgi, Mac)

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 14010
interpreted = N
texte = Grant Hulbert wrote:> Your ErrorTemplate.tmpl is writing the error log without 'thinking of' the file as a database. When you later view it as a database using a search criteria, it gets cached and never looks at the disk again. We purposely 'un-databased' it in order to reduce RAM overhead because some people were getting huge error logs sucked into RAM. > > Either do a [CloseDatabase] before viewing the log (to force a reload), or else change your template so that the log gets written as plain HTML (no longer a database), and view it directly from your browser as a plain HTML file without going thru WebCatalog.Y'know, I like that much better, now that I understand what you've changed. So I just changed my Errors.tmpl to: [include file=../ErrorLog.txt]
DateTimeCommandIP AddressError
and my ErrorTemplate.tmpl to:[appendfile file=/WebCatalog/ErrorLog.txt&secure=F][date][time][command][ipaddress][errormessage] [/appendfile]Now the changes are visible instantly and always written to disk immediately. Thanks again.-- Gil Poulsen, Webmaster************************************************************** * AltiM@c * Phone: (732) 469-2567 * * 429 St. Giles Court * FAX: (732) 469-5823 * * Somerset, NJ * e-mail: help@altimac.com * * 08873 * WWW: http://www.altimac.com * ************************************************************** Associated Messages, from the most recent to the oldest:

    
  1. Re: WebCat Error Log problem (2.0.1, acgi, Mac) (Gil Poulsen 1997)
  2. Re: WebCat Error Log problem (2.0.1, acgi, Mac) (Grant Hulbert 1997)
  3. WebCat Error Log problem (2.0.1, acgi, Mac) (Gil Poulsen 1997)
Grant Hulbert wrote:> Your ErrorTemplate.tmpl is writing the error log without 'thinking of' the file as a database. When you later view it as a database using a search criteria, it gets cached and never looks at the disk again. We purposely 'un-databased' it in order to reduce RAM overhead because some people were getting huge error logs sucked into RAM. > > Either do a [closedatabase] before viewing the log (to force a reload), or else change your template so that the log gets written as plain HTML (no longer a database), and view it directly from your browser as a plain HTML file without going thru WebCatalog.Y'know, I like that much better, now that I understand what you've changed. So I just changed my Errors.tmpl to: [include file=../ErrorLog.txt]
DateTimeCommandIP AddressError
and my ErrorTemplate.tmpl to:[appendfile file=/WebCatalog/ErrorLog.txt&secure=F][date][time][command][ipaddress][errormessage] [/appendfile]Now the changes are visible instantly and always written to disk immediately. Thanks again.-- Gil Poulsen, Webmaster************************************************************** * AltiM@c * Phone: (732) 469-2567 * * 429 St. Giles Court * FAX: (732) 469-5823 * * Somerset, NJ * e-mail: help@altimac.com * * 08873 * WWW: http://www.altimac.com * ************************************************************** Gil Poulsen

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

File Uploads... (1997) WebDNA5 & Tiger (2006) vs (1997) AppleScript question (1997) Just Testing (1997) Search returns all, not 20 (1997) Size images (2002) Multiple Sendmail Tags on One Page (2008) Calculating multiple shipping... (1997) Languages (1997) select multiple 2 more cents (1997) two unique banners on one page (1997) 2.0 Info (1997) math context ignores date prefs? (1998) SuperFlush stumped on simple sort (1999) Problems getting parameters passed into email. (1997) Discount - Reserved Word? (2001) formatting a number (1999) retain raw [cart] submitted value (2004) One more try: WebCat for Dummies p2.2 (2000)