developer.jelix.org is not used any more and exists only for history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Opened 10 years ago

Closed 9 years ago

#1213 closed new feature (fixed)

New coord plugin to trace execution

Reported by: laurentj Owned by:
Priority: high Milestone: Jelix 1.4
Component: jelix:plugins:coord Version: trunk
Severity: major Keywords:
Cc: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version:

Description

It could be very useful to have a plugin, which log the asked action name, the url, and why not, which dump the session etc..

It would allow an easier debugging session.

Attachments (1)

traceexec.tgz (1.2 KB) - added by FlorianLB 10 years ago.

Download all attachments as: .zip

Change History (9)

comment:1 Changed 10 years ago by laurentj

  • Milestone changed from Jelix 1.2RC2 to Jelix 1.3

Changed 10 years ago by FlorianLB

comment:2 Changed 10 years ago by FlorianLB

Voilà une base simple.

Je sais pas si j'ai bien fait, mais j'ai utilisé le nouveau système de log (logger = trace).

J'attends les commentaires pour savoir si ça vous convient et sur ce qu'il faudrait améliorer.

comment:3 Changed 10 years ago by FlorianLB

  • review set to review?

comment:4 Changed 10 years ago by laurentj

  • review changed from review? to review-
  • if($this->config['enable_trace'] == true || $this->config['enable_trace'] == 'on' ) : inutile de tester les deux, il vaut 1 dans tous les cas (resultat du parse_ini_file)
  • idem pour $this->config['log_session']
  • pour l'url, simplement récupérer $_SERVERREQUEST_URI?
  • du coup pour module/action, les mettre en évidence dans la trace
  • attention aux espaces de fin de ligne
  • retirer l'histoire du $this->config['log_file'], ne sert à rien

comment:5 Changed 9 years ago by laurentj

  • Milestone Jelix 1.3 deleted

comment:6 Changed 9 years ago by laurentj

  • review review- deleted
  • Status changed from new to confirmed

comment:8 Changed 9 years ago by laurentj

  • Milestone set to Jelix 1.4
  • Resolution set to fixed
  • Status changed from confirmed to closed

Thanks for your patch

Note: See TracTickets for help on using tickets.