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.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.
Opened 11 years ago
Last modified 9 years ago
#1056 confirmed enhancement
possibilité de formater jLog
Reported by: | yamsuz | Owned by: | laurentj |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | jelix:core | Version: | 1.1.4 |
Severity: | normal | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Documentation needed: | no | |
Hosting Provider: | Php version: |
Description
Lorsqu'on veut mettre un log, la date et l'heure s'enregistre automatiquement, il serait intéressant de pouvoir mettre ce qu'on veut lors de l'appel de la fonction jLog::dump ou jLog::log, c'est à dire rajouter un parametre optionnel avec des mots cles par exemple ou tout simplement l'information directement, qui permettrait de ne pas mettre la date en début, et d'enregistrer dans le fichier de log exactement ce qu'on veut.
Change History (4)
comment:1 Changed 11 years ago by laurentj
- Component changed from jelix to jelix:utils
- Summary changed from jLog to possibilité de formater jLog
- Type changed from new feature to enhancement
comment:2 Changed 10 years ago by laurentj
- Component changed from jelix:utils to jelix:core
- Milestone set to Jelix 1.3
- Owner set to laurentj
comment:3 Changed 10 years ago by laurentj
- Milestone Jelix 1.3 deleted
comment:4 Changed 9 years ago by laurentj
- Status changed from new to confirmed
Note: See
TracTickets for help on using
tickets.
we could have an additionnal parameters to jLog::dump and jLog::log, which is an associated array. This array is then passed to loggers. Loggers can do what they want with it. The file logger replaces all "variables" %foo% by the corresponding value in the array (or by an empy string if there isn't corresponding value.