API Logger Package

API Logger Package

API Logger is a Laravel package by @aungwinthant that helps in debugging API logs. It can log the request method, URL, duration, request payload, models, and controller action.

It comes with a dashboard (the route in your application is /apilogger) where you can visualize all this data from your Laravel routes:

To log a route, you use the following middleware:

Route::middleware('apilogger')
  ->post('/test',function(){
      return response()->json("test");
  });

You can also implement a custom log driver by implementing an interface provided by this package.

To learn more about this package, get full installation instructions, and view the source code on GitHub at aungwinthant/apilogger.

This package was originally submitted to our Laravel News Links section. Follow along on Twitter @LaravelLinks


Filed in: News / packages


Newsletter

Join the weekly newsletter and never miss out on new tips, tutorials, and more.

Laravel News Partners

Laravel Jobs

Senior Laravel Developer (Full-Stack)
Munich
Volunteer Vision GmbH
Full-Stack Developer
Tampa
Nu Image Medical
Senior Software Developer
Remote (US ONLY)/Kenilworth, NJ
Diversified
Senior Back-end Laravel API Developer - Immediate Contract (Full Time)
Remote
ApproveMe // Document Signing
Web Development Project Manager
Houston, TX
Swyft Filings
Experienced Laravel/VueJS Developer (Freelance)
Remote (preferably in the US)
Prosperly LLC
Senior React / Laravel Developer
Remote
The C.A.S.E. Engineering Group