rejetto forum

Don't log [something_you_choose]

0 Members and 1 Guest are viewing this topic.

Offline Giant Eagle

  • Tireless poster
  • ****
    • Posts: 535
  • >=3 RAWR!
    • View Profile
    • RAWR-Designs.com
i am experimenting with AHAH, turns out to be an awesome feature :D. But i did come across one thing:

i am using AHAH in combination with the [something_you_choose] feature, if a tag contains <html> tags you can access it by using ~something_you_choose. In order for Statistics to be helpfull, i created a loop that continously refreshses that page. Everything works fine, its compatible with firefox, ie and opera (afaik). But! the log goes crazy when you start the loop, it generates about 10kb of log each second (not really). Sooo... is there a way to not log those [something_you_choose] things, cause you cant right click them as they are not real files.

[something_you_choose||Don't Log] ?


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
what is the something_you_choose?
a [section] of the template?


Offline Giant Eagle

  • Tireless poster
  • ****
    • Posts: 535
  • >=3 RAWR!
    • View Profile
    • RAWR-Designs.com
i just forgot to document a feature i introduced some time ago
too lazy to find when  ::)

http://rejetto.com/wiki/index.php?title=HFS:_Template#Embedding_pages_inside_a_template

that  :)
« Last Edit: August 31, 2007, 09:06:52 PM by Giant Eagle »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
Ok, i think a good function is to add an URL filter mask for the log. this is quite flexible.
But this needs the user to configure, so i will also implement this solution you proposed

[something_you_choose||Don't Log] ?

to make you template makers a better life. ;)


Offline TSG

  • Operator
  • Tireless poster
  • *****
    • Posts: 1935
    • View Profile
    • RAWR-Designs
YAAAAAY no more log spamming from our ahah rofl. 80% of my log atm is, this will fix it hopefully, and stop people complaining about their logs filling up when we release rofl.

guest@IP:PORT Requested GET /~stats.htm?0.44706501485491246


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
you use a random number, but a simple timestamp would be enough, even better


Offline TSG

  • Operator
  • Tireless poster
  • *****
    • Posts: 1935
    • View Profile
    • RAWR-Designs
%timestamp% ?? that would be static in the javascript component wouldn't it? static because it doesn't get updated?


EDIT: i stand corrected, we need to make a javascript timestamp... seems like a waste of code though... and if the page is hidden then we wont need to worry about how the number looks...
« Last Edit: July 30, 2007, 11:03:49 AM by That_Stevens_Guy »