Re: log files

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 21822
interpreted = N
texte = >>In the real world is the slowdown of having every page do an append >>file to a log file a meaningful number. Is the slowdown 2 seconds, .1 sec, >>.01 sec. Is anyone using a similar solution. > >Use this code to see for yourself: > >[ElapsedTime] > [AppendFile]...[/AppendFile] >[/ElapsedTime]This code won't tell you how long it takes to perform the [appendfile]. The syntax is wrong because ElapsedTime is a global tag, not a context. Here's what the HTML docs say:Putting [ELAPSEDTIME] in your template will display the elapsed time (in 60ths of a second) since the beginning of processing this page. Put one at the top of a page, and another at the bottom to see how long the entire page takes to process (subtract the 2 numbers to get the answer).Therefore, the following example would be one method for getting an approximation of the time required to perform an [appendfile]:[math show=f]startTime=[elapsedtime][/math] [AppendFile]...[/AppendFile] AppendFile Ticks = [math][elapsedtime]-startTIme[/math]Although this should give you a rough estimate, you might be better off to use two [elapsedtime] tags without the math contexts, and doing the math yourself:[elapsedtime] [AppendFile]...[/AppendFile] [elapsedtime]... because there's a possibility that simply having webcat perform the math calculations will add an extra tick or two to the results (but I doubt it) ... :)Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Associated Messages, from the most recent to the oldest:

    
  1. Re: OT: Log Files ( Alain Russell 2003)
  2. Re: OT: Log Files ( "Nitai @ ComputerOil" 2003)
  3. Re: OT: Log Files ( Paul Willis 2003)
  4. Re: OT: Log Files ( John Peacock 2003)
  5. OT: Log Files ( "Nitai @ ComputerOil" 2003)
  6. Re: log files (Kenneth Grome 1998)
  7. Re: log files (John W 1998)
  8. Re: log files (charles kline 1998)
  9. Re: log files (Dave MacLeay 1998)
  10. log files (Charlie Romero 1998)
  11. Re: Umm...about those log files? (Off Topic) (Paul Uttermohlen 1997)
  12. Re: Umm...about those log files? (Off Topic) (Kenneth Grome 1997)
  13. Re: Umm...about those log files? (Off Topic) (Wendell B. Kozak 1997)
  14. Re: Umm...about those log files? (Off Topic) (Bob Minor 1997)
  15. Umm...about those log files? (Off Topic) (Dale Stokdyk 1997)
>>In the real world is the slowdown of having every page do an append >>file to a log file a meaningful number. Is the slowdown 2 seconds, .1 sec, >>.01 sec. Is anyone using a similar solution. > >Use this code to see for yourself: > >[elapsedtime] > [appendfile]...[/AppendFile] >[/ElapsedTime]This code won't tell you how long it takes to perform the [appendfile]. The syntax is wrong because ElapsedTime is a global tag, not a context. Here's what the HTML docs say:Putting [elapsedtime] in your template will display the elapsed time (in 60ths of a second) since the beginning of processing this page. Put one at the top of a page, and another at the bottom to see how long the entire page takes to process (subtract the 2 numbers to get the answer).Therefore, the following example would be one method for getting an approximation of the time required to perform an [appendfile]:[math show=f]startTime=[elapsedtime][/math] [appendfile]...[/AppendFile] AppendFile Ticks = [math][elapsedtime]-startTIme[/math]Although this should give you a rough estimate, you might be better off to use two [elapsedtime] tags without the math contexts, and doing the math yourself:[elapsedtime] [appendfile]...[/AppendFile] [elapsedtime]... because there's a possibility that simply having webcat perform the math calculations will add an extra tick or two to the results (but I doubt it) ... :)Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Kenneth Grome

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:

WebCatalog can't find database (1997) Protect (1997) Strange search/writefile issue (2004) Use of Back and Reload Buttons on ShoppingCart page? (1997) WC2b12: Yes, Formulas.db is for real (1997) Security Tip (1996) Color options for items (1999) Reversing [ipaddress] normalization (1998) Performance Issue (2000) [/application] error? (1997) Can [writefile] files be served thru webcat? (2000) WC2.0 Memory Requirements (1997) Multiple prices (1997) PCS Customer submissions ? (1997) Re:2nd WebCatalog2 Feature Request (1996) problem serving foreign languages text (1997) [OT] Snow Ctd. :) (2004) possible, WebCat2.0 and checkboxes-restated (1997) Further tests with the infamous shipCost (1997) Upgrading to 4.0 on Windoze 98 (2000)