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:

2nd WebCatalog2 Feature Request (1996) New public beta available (1997) Logging purchases (1997) Credit card processing - UK (1997) How can I do (2000) Languages (1997) triggers.db (1999) Problem with [isFile] [isFolder] (wc 3.0.4, iis 4) (1999) [shownext max=?] armed (1997) Renaming textA (1998) woops - speed results - right subject (2002) change the number format (1997) shipcost (1997) FM PRO Compatibility Issue - Single Database w/o Conversions (1997) suggestion (1997) Some Advise needed (1997) no template caching (1997) Shopping carts and reloading pages (1997) Re:What file? (1997) Unexpected error (1997)