• Hi,

    I am writing custom logger for ACF plugin to register published posts from front-end using ACF function. But plugin is giving error Class ‘SimpleLogger’ not found in …

    SimpleLogger is activated and working fine but I dont sure custom plugin cannot find that class.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author eskapism

    (@eskapism)

    Are you in a namespace or something? Or maybe you are registering your clas to early, when simple history has not yet loaded?

    Thread Starter Jamil Ahmed

    (@jimi007)

    I am not in a namespace and simply extending my logger class in plugin using this tutorial https://simple-history.com/2015/create-logger/. I also tried to load my plugin on different hooks e.g plugins_loaded etc but no success.

    Finally I have to include SimpleLogger.php in plugin to make it work.

    Any idea

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Class ‘SimpleLogger’ not found – Class cannot be extended’ is closed to new replies.