Download the PHP package markrogoyski/simplelog-php without Composer

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

SimpleLog Logo

SimpleLog

Powerful PSR-3 logging. So easy, it's simple!

SimpleLog is a powerful PSR-3 logger for PHP that is simple to use.

Simplicity is achieved by providing great defaults. No options to configure! Yet flexible enough to meet most logging needs. And if your application's logging needs expand beyond what SimpleLog provides, since it implements PSR-3, you can drop in another great PSR-3 logger like MonoLog in its place when the time comes with minimal changes.

Coverage Status License

Features

Setup

Add the library to your composer.json file in your project:

Use composer to install the library:

Composer will install SimpleLog inside your vendor folder. Then you can add the following to your .php files to use the library with Autoloading.

Alternatively, use composer on the command line to require and install SimpleLog:

Minimum Requirements

Usage

Simple 20-Second Getting-Started Tutorial

That's it! Your application is logging!

Extended Example

Logger output

Log Output

Log lines have the following format:

Log lines are easily readable and parsable. Log lines are always on a single line. Fields are tab separated.

Log Levels

SimpleLog has eight log level severities based on PSR Log Levels.

By default all log levels are logged. The minimum log level can be changed in two ways:

Contextual Data

SimpleLog enables logging best practices to have general-use log messages with contextual support data to give context to the message.

The second argument to a log message is an associative array of key-value pairs that will log as a JSON string, serving as the contextual support data to the log message.

Logging Exceptions

Exceptions are logged with the contextual data using the key exception and the value the exception variable.

Log Channels

Think of channels as namespaces for log lines. If you want to have multiple loggers or applications logging to a single log file, channels are your friend.

Channels can be set in two ways:

Debug Features

Logging to STDOUT

When developing, you can turn on log output to the screen (STDOUT) as a convenience.

Dummy Logger

Suppose you need a logger to meet an injected dependency during a unit test, and you don't want it to actually log anything. You can set the log level to which won't log at any level.

Unit Tests

Coverage Status

Standards

SimpleLog conforms to the following standards:

License

SimpleLog is licensed under the MIT License.


All versions of simplelog-php with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0.0
psr/log Version 2.0.*
ext-json 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 markrogoyski/simplelog-php contains the following files

Loading the files please wait ....