You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Monolog is used for FuelPHP's logging system backend, and Monolog supports arbitrary context data. (An array of arbitrary data with information about what caused the logging event) Both \Log::write(), and logger() interface directly with Monolog's \Monolog\Logger::log() method to write entries.
Proposed Change
Alter \Log::write() and logger() to accept a fourth parameter for $context, and pass it along to \Monolog\Logger::log() for processing.
It would also be ideal if you could separate \Log::_init() into a secondary method for handling exactly how logs are stored through Monolog. That way people can extend the \Log class, and override the new method without having to call parent::_init() to keep the directory structure, while needlessly setting up the original Monolog recording methods. (See: http://fuelphp.com/docs/general/extending_core.html#extend_and_replace)
The text was updated successfully, but these errors were encountered:
While a perfectly valid idea I feel that any new major changes should be left out of v1 now in favour of working on v2. I'd rather that our efforts went into the new version of the framework so we can feature freeze v1.
Monolog is used for FuelPHP's logging system backend, and Monolog supports arbitrary context data. (An array of arbitrary data with information about what caused the logging event) Both
\Log::write()
, andlogger()
interface directly with Monolog's\Monolog\Logger::log()
method to write entries.Proposed Change
Alter
\Log::write()
andlogger()
to accept a fourth parameter for $context, and pass it along to\Monolog\Logger::log()
for processing.It would also be ideal if you could separate
\Log::_init()
into a secondary method for handling exactly how logs are stored through Monolog. That way people can extend the \Log class, and override the new method without having to callparent::_init()
to keep the directory structure, while needlessly setting up the original Monolog recording methods. (See: http://fuelphp.com/docs/general/extending_core.html#extend_and_replace)The text was updated successfully, but these errors were encountered: