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 Answer 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, 2015 at 11:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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