Git Product home page Git Product logo

db-lojack's People

Contributors

jfossey avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

db-lojack's Issues

Enable queries logging on all connections

When DB::enableQueryLog() is used it only enables query logging on the default connection. To enable query logging on all setup connections we would need to use DatabaseManager::getConnections() and loop through each connection and call enableQueryLog() on each.

Unit Testing

Add Tests that simulate and test the process of logging a database query using a SQLite in memory database.

Force permissions of log file

To handle situation where a log file is created through a http request or a cli command we need to make sure that both the owner and group have both read and write permission set.

This allows for a common group to allow permission to both users.

Problem with t function

public function logQueries($queries, $connection = null)
    {
        Log::debug(t('Query Count #:count for :url', [  _//This one_ 
            ':count' => count($queries),
            ':url'   => $this->logLabel(),
        ]));
        if (empty($queries)) {
            return;
        }
        $this->makeLogger($this->makeQueryStore($queries, $connection))->writeLogs();
    }

I have problem running it, since it says that t function is not defined. I thought maybe you know this issue already.

> @php artisan package:discover

In DBLoJack.php line 151:

  Call to undefined function WebChefs\DBLoJack\t()

Performance Watchdog

Add a more extensive performance logging system that can be used to catch poor performance on a live system without adding to much overhead and provide detail on development when needed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.