Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7790905
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T21:43:50+00:00 2026-06-01T21:43:50+00:00

what can I do to make the abstract function work in the emaillogger class?

  • 0

what can I do to make the abstract function work in the emaillogger class?

class EmailLogger extends Zend_Log_Writer_Abstract

and I want to use the function _write

 protected function _write($event)
 {
      $this->_events[] = $this->_formatter->format($event);
 }

then I got this error

Class EmailLogger contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Zend_Log_FactoryInterface::factory)

I am not really sure what to do here
I try’d to use implements Zend_Log_FactoryInterface, but it diddn’t work

thanks, Richard

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T21:43:52+00:00Added an answer on June 1, 2026 at 9:43 pm

    Zend_Log_Writer_Abstract implements Zend_Log_FactoryInterface which has the following code:

    static public function factory($config);
    

    This forces the Zend_Log_Writer_Abstract and any child classes to also have a factory method. To satisfy this requirement, you could put in a wrapper method which calls the parent method:

    class EmailLogger extends Zend_Log_Writer_Abstract
    {
        // Add this method in conjunction to what you already have in your class
        public static function factory($config)
        {
            parent::factory($config);
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to make a button class (abstract) so I can set what function
How can I make an abstract class in AS3 nicely? I've tried this: public
I can make batch or vbs file on windows and run. this can automate
I have an abstract base class in my application. I want to provide an
As Super Class objects cannot be instantiated in the main function abstract keyword is
I have some abstract class called IClass (has pure virtual function). There are some
I have the following setup: abstract class AParentLy{ private $a; private $b; function foo(){
This doesn't work: interface TestInterface { public function testMethod(); } interface TestInterface2 { public
Can you give me an almost overly simplistic understanding of abstract class vs inheritance
I have one base class which holds a map for function pointers like this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.