Skip to content

classes_essentials_logging_logreport.class

Daniel Spors edited this page Dec 19, 2023 · 3 revisions

Classes in file essentials/logging/logreport.class.php

class LogReport

Wrapper class to generate a report in the logs. Use log_start_report function to generate a report. Then add information and finally write it with log_report function.

Sample:

$r = log_start_report('test-report');	
$r->add("some var",$v);	
$r->add("$c);	
if( $user ) $r->add("User",$user);	
log_report($r);	

add

Adds information to the report.

Definition: public function add($a1=null, $a2=null, $a3=null, $a4=null, $a5=null, $a6=null, $a7=null, $a8=null, $a9=null, $a10=null)

Returns: void

Parameters:

  • mixed $a1 Data to be logged

  • mixed $a2 Data to be logged

  • mixed $a3 Data to be logged

  • mixed $a4 Data to be logged

  • mixed $a5 Data to be logged

  • mixed $a6 Data to be logged

  • mixed $a7 Data to be logged

  • mixed $a8 Data to be logged

  • mixed $a9 Data to be logged

  • mixed $a10 Data to be logged

render

Renders a report to a logfile. Do not call directly but use a combination of log_start_report and log_report instead.

Definition: public function render()

Returns: string

Clone this wiki locally