Download the PHP package stellarwp/foundation-log without Composer

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

Foundation Log

[!WARNING] This is a read-only repository! For pull requests or issues, see stellarwp/foundation.

Foundation Log provides a shared PSR-3 logger using Monolog and the Foundation container.

Installation

Supports Monolog ^2.11 || ^3.10.

Configure the logger

Add the logging settings to the application's config.php:

Load the configuration when bootstrapping the application container, then register the logging provider:

If the application already has a Foundation container, include these settings in its configuration and register LogProvider on that existing container.

Inject Psr\Log\LoggerInterface into application services. The logger is shared, so handler and processor changes remain in effect for that container's lifetime.

Built-in channels are errorlog, console, null, and stack (console plus PHP error log when available). The level defaults to debug; select a channel explicitly. PSR-3 placeholders are interpolated while structured context is retained.

Custom destinations and stacks

Add channel definitions under log.channels. Each destination selects a registered Monolog handler; an optional formatter selects a registered formatter. For example, with your BufferedAxiomHandler already bound in the container:

The configured level is the minimum for every destination, including composite handlers. Their own filtering may be stricter.

A custom stream channel can use Monolog\Handler\StreamHandler with with.stream set to a path or open stream. Stack entries must identify concrete handler channels, not nested stacks. Separate entries must not resolve to the same handler instance. Monolog invokes handlers in reverse insertion order; handler bubbling controls further delivery.

Foundation does not include an Axiom transport or automatically buffer records. The application supplies credentials, transport failure handling, buffer limits and flushing. Foundation Shutdown provides an explicit end-of-request flush boundary. Long-running workers should flush between jobs rather than waiting for process termination.


All versions of foundation-log with dependencies

PHP Build Version
Package Version
Requires php Version >=8.3
monolog/monolog Version ^2.11 || ^3.10
stellarwp/foundation-container Version ^2.0
psr/log Version >=1.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 stellarwp/foundation-log contains the following files

Loading the files please wait ...