Download the PHP package flytachi/winter-logger without Composer

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

Winter Logger

Latest Version on Packagist

flytachi/winter-logger — multi-runtime PSR-3 logger for the Winter framework. Wraps Monolog with coroutine-safe context isolation, Spring Boot-style output, and a Java-style static factory.

The library is infrastructure-agnostic: it knows nothing about env vars, Docker, SAPI, or Swoole detection — that responsibility belongs to the framework that boots it.


Requirements

Installation

Monolog-free (every logger will be a no-op NullLogger):


Quick Start

1. Build a LoggerManager

The manager accepts a ready-made config — the framework resolves env vars and infrastructure details before calling this:

2. Register with LoggerFactory

3. Log from anywhere

Output (line format)


Request-scoped context

Set fields once at the start of a request/job and they appear in every log line automatically via ContextInjectingProcessor:

For Swoole use CoroutineContext — it isolates context per coroutine so concurrent requests never bleed into each other.


Channel config reference

Key Type Description
level Monolog\Level Minimum level to handle
format 'line' | 'json' Log format
output 'stdout' | 'stderr' | 'syslog' | 'file' | 'null' Where to write
file_path string\|null Required when output=file
file_max int Max rotated files to keep (default 30)
syslog_ident string Syslog process identifier (default 'winter')

Processors

ContextInjectingProcessor is added to every channel automatically — no config needed.

SensitiveMaskingProcessor is optional. Add it after building the manager:

Default masked keys: password, token, secret, api_key, authorization, cookie, credit_card, cvv, ssn, pin, and more.


Documentation

File Topic
00-overview.md Architecture — how the pieces fit together
01-installation.md Installation, optional Monolog
02-channels.md LoggerManager, channel config, output types
03-logger-factory.md LoggerFactory, getLogger, withContext
04-context.md ProcessContext, CoroutineContext, lifecycle
05-handlers-formatters.md SafeStreamHandler, formatters, broken pipe
06-processors.md ContextInjectingProcessor, SensitiveMaskingProcessor

License

MIT License. See LICENSE.


All versions of winter-logger with dependencies

PHP Build Version
Package Version
Requires php Version >=8.3
psr/log Version ^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 flytachi/winter-logger contains the following files

Loading the files please wait ...