0

I would like to know if logging is prohibited in this location?

public function getAllowedMethods()
{
    Mage::log("getAllowedMethods", null, "sam.txt");
    return array(
        'standard' => "Standard",
        'custom' => "Custom",
    );
}
1

if your logging is disabled it won't work.
Try to use it like this:

Mage::log("getAllowedMethods", null, "sam.txt", true);

The last parameter set to true forces the log even if logging is disabled.
If in this case nothing is logged then your method is not called.

  • may logging is enabled. it's just this particular function which is an interface required for creating custom shipping methods – tom_cruz Sep 22 '15 at 11:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.