FUEL CMS User Guide : Version 1.5.2


Fuel Logs Class

This class extends the Fuel_base_library class.

Properties Reference

Property Default Value Description
public
location db

Function Reference [+]

$this->fuel->logs->initialize([$params=array()])

Initialize the object and set object parameters. Accepts an associative array as input, containing object preferences.

Returns

void

Parameters

(array) $params Array of initalization parameters  (optional)

$this->fuel->logs->write('$msg', ['$level'='info'], ['$location'='db'])

Writes a log message to either the database or to a log file.

Returns

void

Parameters

(string) $msg Message to log
(string) $level Message level. Options are error, debug, info. Default is 'info'.   (optional)
(string) $location Where to store the log message. Options are 'db' or 'file'. Default is 'db.'  (optional)

$this->fuel->logs->model()

Returns the FUEL fuel_logs_model object.

Returns

object