Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Using PEAR Log in parallel to FuelPHP's logger
  • I'd like to be able to use the Log class from PEAR in some specific cases, but I don't want Fuel to use it internally. This seems problematic since the PEAR/Log.php file does not include any namespace.
    As soon as PEAR Log is loaded it replaces Fuel's Log in the global namespace. Is there a way to overcome this without touching the PEAR package? Thanks,
    Jakob
  • Not without changing the PEAR package. The problem with PEAR is that most of it is very outdated and/or poorly maintained. There is a PEAR draft about introducing namespaces, which dates back to 2008, and isn't work on like most of the other PEAR stuff...
  • Thanks, that's what I feared...

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion