Download the PHP package themehybrid/hybrid-log without Composer

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

Hybrid Log

PSR-3 logging for Hybrid Core, built on Monolog. Configure named channels, write to one or several at once, and attach contextual data that follows every log entry.

Requirements

Installation

Register both service providers during bootstrap. LogServiceProvider is required; ContextServiceProvider backs the Context facade and is expected by the log manager.

Configuration

Channels are defined in /config/logging.php. default names the channel used when you don't pick one.

Drivers

Driver Writes to
single One file
daily One file per day, rotated after days
stack Several channels at once, listed in channels
syslog System log
errorlog PHP's error log
slack A Slack incoming webhook (url, username, emoji)
monolog Any Monolog handler, named in handler with with for constructor args
custom A factory class named in via, returning a Monolog instance

level accepts any PSR-3 level name and defaults to debug.

Writing logs

Pass contextual data as a second argument:

Choosing a channel

Sharing context

withContext() adds data to every subsequent entry on that channel. shareContext() does the same across all channels, including ones resolved later.

Context

The Context facade holds data that is attached to every log entry automatically, so you don't have to thread it through your call stack.

Hidden context is kept out of log entries. Use it for values you want available to your own code but not written to disk.

Other useful methods:

scope() runs a callback with extra context, then restores the previous state — even if the callback throws.

Each add, push and increment variant has a Hidden counterpart: addHiddenIf(), pushHidden(), popHidden(), onlyHidden(), and so on.

Helper functions

Listening for log entries

Testing

Copyright and License

This project is licensed under the GNU GPL, version 2 or later.

2008 – 2026 © Theme Hybrid.

Third-Party Licenses

Hybrid Log utilizes code from the illuminate/log package.

Repository: https://github.com/illuminate/log

License: MIT License - https://opensource.org/licenses/MIT

Copyright (c) Taylor Otwell


All versions of hybrid-log with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
monolog/monolog Version ^3.0
psr/log Version ^1.0 || ^2.0 || ^3.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 themehybrid/hybrid-log contains the following files

Loading the files please wait ...