View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
13612Bug reportsPluginspublic2021-03-11 08:41
ReporterDenisChenu Assigned Toollehar  
PrioritynoneSeverityminor 
Status assignedResolutionopen 
Product Version3.6.x 
Summary13612: More information in default log
Description

Currently, plugin log create only 'plugin.pluginName' log event, but sometimes we need event separation

Steps To Reproduce

… see code ?
https://github.com/LimeSurvey/LimeSurvey/blob/eaece8e3a0af0ae30052f219a4a6eff07d7c9e29/application/libraries/PluginManager/PluginBase.php#L366

Additional Information

I think we can:

  • Allow plugin dev to add a string «public function log($message, $level = \CLogger::LEVEL_TRACE,$extraEvent="")»
  • Auto (or not) append the current event (if exist, maybe in some month we use same function out of event ;) à

But i'm totally unsure if

  • We always append current event or not (and add $extraEvent after)
  • We use current event only if $extraEvent is not set
  • We use current event if $extraEvent is not set and another param is set to true … (or if $extraEvent is set to true), then «public function log($message, $level = \CLogger::LEVEL_TRACE,$extraEvent=false)»
TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)3.6.2 git
I will donate to the project if issue is resolvedNo
Browsernot relevant
Database type & versionnot relevant
Server OS (if known)not relevant
Webserver software & version (if known)not relevant
PHP Versionnot relevant

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2018-04-18 18:23

developer   ~47461

I like to have current function called too (if exist) but don't like to use debug_trace … for just logging ;)

ollehar

ollehar

2021-03-10 21:29

administrator   ~63149

Still relevant?

DenisChenu

DenisChenu

2021-03-11 08:41

developer   ~63275

Yes

It can be a feature, currently i extend log or use directly Yii::log with my plugins

Issue History

Date Modified Username Field Change
2018-04-18 10:47 DenisChenu New Issue
2018-04-18 10:47 DenisChenu Status new => assigned
2018-04-18 10:47 DenisChenu Assigned To => ollehar
2018-04-18 18:23 DenisChenu Note Added: 47461
2021-03-10 21:29 ollehar Status assigned => feedback
2021-03-10 21:29 ollehar Note Added: 63149
2021-03-11 08:41 DenisChenu Note Added: 63275
2021-03-11 08:41 DenisChenu Status feedback => assigned