Download the PHP package toropyga/flog without Composer

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

FLog

Logging class

License Version PHP

Contents

Overview

The FLog class is designed to save the passed data to a file. It requires PHP version 7.1 or higher.

You can configure the maximum size of the resulting file and the retention period for log files. Log files will not exceed the specified size and will not be stored longer than the specified retention period.

Installation

The recommended way to install the FLog library is via Composer:

Configuration

Default parameters can be pre-configured either directly in the class itself, via named constants, or by passing parameters when the class is initialized. Named constants, if needed, are declared before the class is called (for example, in a configuration file) and define the default parameters.

When initializing the class, you can pass an array with the following keys for configuration:

Usage

Including the class file

or using Composer


Initializing the class

or


Setting parameters

Configure the amount of service information included in the log. Accepted values:


Set the log level. Accepted values: emergency, alert, critical, error, warning, notice, info, debug


Set the file name used for writing logs


Set the log storage method.

Accepts a number from 0 to 6, or a string (file - to a file, stdout - to the system output, db - to a database)

Numbers:

If a string is passed instead of a number, it can list several types separated by commas in any order ('file, db')

By default, logs are saved to a file only.

or


Connecting a database for writing logs to a database


Saving a log line

Preliminary log data.

The log text supports placeholder substitution. A placeholder variable is enclosed in curly braces. Substitution is performed using values from the context array, keyed by the name of the placeholder variable without the curly braces. (see the documentation, section 1.2)

debug level log

info level log

notice level log

warning level log

error level log

critical level log

alert level log

emergency level log


A generic variant is also available, with the log level specified explicitly


You can use the legacy variant


Saving an array of logs


All versions of flog with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
toropyga/base Version *
toropyga/db Version *
ext-fileinfo Version *
ext-mbstring Version *
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 toropyga/flog contains the following files

Loading the files please wait ...