Download the PHP package yeebase/graylog without Composer

On this page you can find all versions of the php package yeebase/graylog. 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 graylog

Yeebase.Graylog

The Yeebase.Graylog Flow package logs your exceptions as well as single messages to a central Graylog server. This package also provides a simple backend to log message of Flows Logger classes to a Graylog server.

It depends on the official GELF php package https://github.com/bzikarsky/gelf-php

Installation & configuration

Just add "yeebase/graylog" as dependency to your composer.json and run a "composer update" in your project's root folder or simply execute:

from your project's root.

Configure your Graylog Server:

Logging backend

To configure GraylogBackend as the default logging backend, put this in your Settings.yaml:

Log exceptions

Activate the exception handler and configure the connection to your graylog server in your Settings.yaml:

Now all Exceptions that are shown to the Web or CLI are logged to graylog.

Note: For Development context, the Neos.Flow package overrides this setting. Make sure to add this configuration in the right context Settings.yaml.

If you want to log additionally all Exceptions to graylog you should replace the systemLogger as well. This will log all errors that are logged with the SystemLogger to Graylog as well to the disk. By default Flow will only log a single line to the system log aka "See also ... .txt". The GraylogLogger will also log the full Exception.

Filter exceptions

To skip certain exceptions from being logged you can either use the skipStatusCodes setting:

Since version 2.1 you can alternatively use the renderingGroups Flow setting, i.e. to exclude certain Exception classes from being logged:

Manual logging

If you wish to log normal log messages to your Graylog server just use the provided GraylogLoggerInterface:

By default messages will also be logged to the SystemLoggerInterface when Flow runs in Development context. You can enable or disable this function with a setting:

Extend the message context

By default this package will send a bunch of values to graylog you can use to filter on. A Exception for instance has some fields like reference_code, response_status_code and so on. You can extend those values via Settings.yaml. Just pass an array of values to Yeebase.Graylog.messageContext. This is useful to pass some static values to your logs to filter on in Graylog.


All versions of graylog with dependencies

PHP Build Version
Package Version
Requires neos/flow Version ^5.0
graylog2/gelf-php Version ~1.5
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 yeebase/graylog contains the following files

Loading the files please wait ....