Download the PHP package fyre/log without Composer

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

FyreLog

FyreLog is a free, open-source logging library for PHP.

Table Of Contents

Installation

Using Composer

In PHP:

Basic Usage

Default configuration options will be resolved from the "Log" key in the Config.

Autoloading

It is recommended to bind the LogManager to the Container as a singleton.

Any dependencies will be injected automatically when loading from the Container.

Methods

Build

Build a Logger.

Container.

Clear

Clear instances and configs.

Get Config

Get a Logger config.

Alternatively, if the $key argument is omitted an array containing all configurations will be returned.

Handle

The supported log levels include: "emergency", "alert", "critical", "error", "warning", "notice", "info" and "debug".

Has Config

Determine whether a Logger config exists.

Is Loaded

Determine whether a Logger instance is loaded.

Set Config

Set the Logger config.

Unload

Unload a Logger.

Use

Load a shared Logger instance.

Container.

Loggers

You can load a specific logger by specifying the className option of the $config variable above.

Custom loggers can be created by extending \Fyre\Log\Logger, ensuring all below methods are implemented.

Can Handle

Determine whether a log level can be handled.

This method will return true if the $level is contained in the levels of the Logger config (or levels is set to null), and the $scope is contained in scopes (or $scope is null and scopes is an empty array, or scopes is set to null).

Handle

Handle a message log.

Array

The Array logger can be loaded using custom configuration.

Clear

Clear the log content.

Read

Read the log content.

File

The File logger can be loaded using custom configuration.

Logging

Generally, logging is done by calling the handle method of a LogManager instance.

This will call the canHandle method of all defined logger configs, and if that returns true then the handle method will also be called.

The default log levels are shown below (in order of severity).

There are default placeholders that can also be used in log messages:

See the MessageFormatter::formatMessage method for details about message formatting.


All versions of log with dependencies

PHP Build Version
Package Version
Requires fyre/config Version ^4.0
fyre/container Version ^1.0
fyre/filesystem Version ^2.0
fyre/path Version ^2.0
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 fyre/log contains the following files

Loading the files please wait ....