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'vechanged. So I just changed my Errors.tmpl to:
Date | Time | Command | IPAddress | Error |
[include file=../ErrorLog.txt]
and my ErrorTemplate.tmpl to:[appendfilefile=/WebCatalog/ErrorLog.txt&secure=F]
[date] | [time] | [command] | [ipaddress] | [errormessage] |
[/appendfile]Now the changes are visible instantly and always written to diskimmediately. 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:
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'vechanged. So I just changed my Errors.tmpl to:
Date | Time | Command | IPAddress | Error |
[include file=../ErrorLog.txt]
and my ErrorTemplate.tmpl to:[appendfilefile=/WebCatalog/ErrorLog.txt&secure=F]
[date] | [time] | [command] | [ipaddress] | [errormessage] |
[/appendfile]Now the changes are visible instantly and always written to diskimmediately. 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:
RequiredFields template (1997)
authenticating a second user (1997)
Dieresis in [sendmail] (1999)
Shipping costs... (2000)
Back to Authnet with storebuilder (2003)
Problem with updating 2.1b7 -> 2.1.1 (1998)
typhoon... (1997)
RE: too many nested [xxx] (1997)
Still Stumped on ShowNext...HELP! (1997)
Can't get appendfile to work (1997)
date tag not interpreted (2000)
Credit Card Number Stripping Digit (1997)
testing if the field is empty (2000)
[WebDNA] Code works in v6 but not in v7 (2010)
Spawn doesn't work as advertised ... (2000)
writing orders to a db (1997)
[protect admin] (1997)
Browser Problem?!? Still getting Error message using POST! (1997)
RE: Languages (1997)
[WebDNA] Dead line Time Math (2017)