Download the PHP package codeflow-hub/logger without Composer

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

CodeFlow Logger

Latest Stable Version Total Downloads License PHP Version Require

Sistema enterprise de logs PSR-3 compliant com suporte a múltiplos handlers (arquivo, email, Telegram).

Wrapper estático para Monolog com contexto estruturado automático, sanitização de dados sensíveis e helper global.

✨ Recursos

Instalação

🚀 Uso Básico

Logging simples

Níveis PSR-3 com notice()

⚙️ Configuração (Opcional)

Diretório, arquivos e níveis

Se nenhum ajuste for feito, o logger usa PROJECT_ROOT/logs/file-YYYY-MM-DD.log e registra a partir de DEBUG.

Notificações por email

Notificações por Telegram

Tratando falhas de inicialização

Use Logger::fail() para inspecionar problemas como diretório de log sem permissão ou parâmetros inválidos de configuração. O método retorna null quando não há erros pendentes.

📊 Níveis PSR-3 Suportados

Método Nível Descrição Email/Telegram
debug() DEBUG Informações detalhadas para desenvolvimento ❌
info() INFO Eventos informativos gerais ❌
notice() NOTICE Eventos significativos, porém normais ❌
warning() WARNING Avisos que não impedem execução ❌
error() ERROR Erros que exigem atenção ✅
critical() CRITICAL Falhas críticas do sistema ✅
alert() ALERT Ação imediata necessária ✅
emergency() EMERGENCY Sistema inutilizável ✅

🔒 Segurança e Sanitização

O logger automaticamente sanitiza dados sensíveis antes de gravar nos logs:

Campos automaticamente sanitizados: password, token, secret, senha, hash (inclusive em arrays aninhados). Strings longas são truncadas para 120 caracteres para facilitar a leitura.

📁 Estrutura dos Logs

Os logs são salvos em PROJECT_ROOT/logs/file-YYYY-MM-DD.log por padrão. Use Logger::settings(['file_log_label' => 'app-' . date('Y-m-d') . '.log']) para adequar o nome ao seu padrão:

Formato do Log

📚 Exemplos prontos

Os exemplos cobrem desde o onboarding rápido até fluxos de produção (contexto HTTP, sanitização, métricas e notificações). Eles são ideais para validar o pacote em ambientes locais ou pipelines.

🛠️ Desenvolvimento

Scripts Composer úteis

Estrutura do projeto

📋 Requisitos

📄 Licença

Este projeto está licenciado sob a licença MIT. Veja o arquivo LICENSE para mais detalhes.

🤝 Contribuindo

  1. Fork o projeto
  2. Crie uma feature branch (git checkout -b feature/amazing-feature)
  3. Commit suas mudanças (git commit -m 'Add amazing feature')
  4. Push para a branch (git push origin feature/amazing-feature)
  5. Abra um Pull Request

📞 Suporte


Desenvolvido com ❤️ pela CodeFlow Hub


All versions of logger with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
monolog/monolog Version ^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 codeflow-hub/logger contains the following files

Loading the files please wait ...