Download the PHP package norsys/logs-bundle without Composer

On this page you can find all versions of the php package norsys/logs-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package logs-bundle

Logs Bundle

Package version Total Downloads Build Status Scrutinizer Coverage Scrutinizer Code Quality License

SensioLabsInsight

This project is a bundle to write logs in database and read logs with browser

Installation

Step 1: Download the Bundle

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.

Step 2: Enable the Bundle

Then, enable the bundle by adding it to the list of registered bundles in the app/AppKernel.php file of your project:

Step 3: Configuration

First of all, you need to configure the Doctrine DBAL connection to use in the handler. You have 2 ways to do that:

By using an existing Doctrine connection:

Note: we set the logging and profiling option to false to avoid DI circular reference.

By creating a custom Doctrine connection for the bundle:

Please refer to the Doctrine DBAL connection configuration for more details.

Optionally you can override the schema table name (monolog_entries by default):

Now your database is configured, you can generate the schema for your log entry table by running the following command:

Then, you can configure Monolog to use the Doctrine DBAL handler:

Now you have enabled and configured the handler, you migth want to display log entries, just import the routing file:

Translations

If you wish to use default translations provided in this bundle, make sure you have enabled the translator in your config:

Overriding default layout

You can override the default layout of the bundle by using the base_layout option:

or quite simply with the Symfony way by create a template on app/Resources/NorsysLogsBundle/views/layout.html.twig.

Using service tags to implement logger

This bundle comes up with a compiler pass helper, easing integration of the logger by using service tags when combined with LoggerAwareTrait.

First, use trait in your class:

Then update the class setup in your service container config:

That's it, now your logger is ready to use!:

Credits

Developped with :heart: by Norsys

License

This project is licensed under the MIT license.


All versions of logs-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.0
symfony/symfony Version ~3.4
knplabs/knp-paginator-bundle Version ~2.5.3
monolog/monolog Version *
doctrine/dbal Version *
sensio/distribution-bundle Version ^5.0
composer/composer Version ^1.4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package norsys/logs-bundle contains the following files

Loading the files please wait ....