2017 © Pedro Peláez
 

library applogger

API Logger or monitor in Zend Framework 2 and has ability to use in Apigility.

image

tarun-singhal/applogger

API Logger or monitor in Zend Framework 2 and has ability to use in Apigility.

  • Wednesday, April 8, 2015
  • by tarun-singhal
  • Repository
  • 0 Watchers
  • 0 Stars
  • 8 Installations
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

AppLogger

AppLogger is basically used to log Rest-API and has ability to connect with the Apigility, (*1)

  • Steps to Enable and usage of AppLogger Module

Step 1 :To enable the Module in ZF2, Include the module name inside application.config.php file, (*2)

return array(
  ...,
  ...,
  'AppLogger'
);

Step 2: Please check the log directory exist at module root level, Please create api_log/ inside log dir. and should have full permission to write and create files inside api_log dir., (*3)

Step 3: If you want to use in ZF2-ApiGility, then enable the API-LOG button on home view of Apigility. Place the below code inside vendor/zfcampus/zf-apigility-welcome/view/zf-apigility-welcome/welcome.phtml and locate "API Documentation" key., (*4)

    <?php if (class_exists('AppLogger\Module', false)): ?>
        <a href="<?php echo $this->url('applog') ?>" class="btn btn-lg ag-welcome-btn-outline">API Log</a>
    <?php endif; ?>

Step 4: If you are not using it in Apigility then you can call the Log view via: http:///applog, (*5)

I hope it will help you to monitor the API Calls., (*6)

The Versions

08/04 2015

dev-master

9999999-dev https://github.com/tarun-singhal/AppLogger

API Logger or monitor in Zend Framework 2 and has ability to use in Apigility.

  Sources   Download

The Requires

  • php >=5.3

 

by Tarun Singhal

api logger zf2 apigility api log