Download the PHP package molxno/laravel-cloudwatch-logging without Composer

On this page you can find all versions of the php package molxno/laravel-cloudwatch-logging. 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 laravel-cloudwatch-logging

Laravel CloudWatch Logging

Este paquete permite enviar logs de Laravel a AWS CloudWatch de manera sencilla utilizando el sistema de logging de Laravel.

📦 Instalación

Puedes instalar el paquete mediante Composer:

⚙️ Configuración

1. Agregar el canal de logging

Laravel permite configurar los canales de logging en el archivo config/logging.php. Agrega el siguiente bloque dentro de la sección channels:

2. Configurar las variables de entorno

Asegúrate de agregar las credenciales de AWS en tu archivo .env:

Si estás utilizando IAM roles en un servidor EC2 o ECS, puedes omitir AWS_ACCESS_KEY_ID y AWS_SECRET_ACCESS_KEY.

🚀 Uso con Laravel

Una vez configurado, puedes utilizar el helper Log de Laravel para enviar logs a CloudWatch:

También puedes usar los otros niveles de logging disponibles: debug, warning, critical, etc.

🛠 Solución de problemas

Si los logs no se envían a CloudWatch:

  1. Verifica las credenciales de AWS: Asegúrate de que AWS_ACCESS_KEY_ID y AWS_SECRET_ACCESS_KEY sean correctos.
  2. Revisa los permisos de IAM: El usuario debe tener permisos para logs:PutLogEvents en el grupo de logs configurado.
  3. Comprueba la región de AWS: La región en .env debe coincidir con la configuración de tu grupo de logs en AWS CloudWatch.
  4. Valida el nombre del grupo y stream de logs: Asegúrate de que CLOUDWATCH_LOG_GROUP y CLOUDWATCH_LOG_STREAM sean correctos.
  5. Habilita el modo debug en Laravel:

Si el problema persiste, revisa los logs de Laravel en storage/logs/laravel.log para más detalles.

📄 Licencia

Este proyecto está bajo la licencia MIT. ¡Siéntete libre de contribuir y mejorar el paquete! 🚀


All versions of laravel-cloudwatch-logging with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
aws/aws-sdk-php Version ^3.339
monolog/monolog Version ^3.8
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 molxno/laravel-cloudwatch-logging contains the following files

Loading the files please wait ....