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:

Methods

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.

Get Key

Get the key for a Logger instance.

Has Config

Check if a Logger config exists.

Is Loaded

Check if a Logger instance is loaded.

Load

Load a Logger.

Set Config

Set the Logger config.

Alternatively, a single array can be provided containing key/value of configuration options.

Unload

Unload a Logger.

Use

Load a shared Logger instance.

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 if a log level can be handled.

By default, this method will return true if the $level is below or equal to the threshold defined in the logger config, otherwise false.

Handle

Handle a message log.

File

The File logger can be loaded using custom configuration.

Logging

Generally, logging is done by calling the static methods of the Log class.

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 ....