PHPackages                             munir131/monolog-google-cloud-json-formatter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. munir131/monolog-google-cloud-json-formatter

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

munir131/monolog-google-cloud-json-formatter
============================================

A Monolog extension for formatting log entries for Google Cloud Logging

1.0.1(4y ago)15.1k↓33.3%1MITPHPPHP &gt;=7.2

Since Apr 4Pushed 4y agoCompare

[ Source](https://github.com/munir131/monolog-google-cloud-json-formatter)[ Packagist](https://packagist.org/packages/munir131/monolog-google-cloud-json-formatter)[ RSS](/packages/munir131-monolog-google-cloud-json-formatter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (3)Used By (0)

A Monolog extension for formatting log entries for Google Cloud Logging
=======================================================================

[](#a-monolog-extension-for-formatting-log-entries-for-google-cloud-logging)

[![Author](https://camo.githubusercontent.com/abd4e3e2e71081ad01ef09a60c49d70c5e0677497f38918e740703cd02605078/687474703a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d40737570657262616c6973742d626c75652e7376673f7374796c653d666c61742d737175617265)](https://twitter.com/superbalist)[![StyleCI](https://camo.githubusercontent.com/0b1100b1174f44aabdd669cef9ba6e0c6d403da68a3fe42a0a695448675c72dd/68747470733a2f2f7374796c6563692e696f2f7265706f732f35353339373434372f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/55397447)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Packagist Version](https://camo.githubusercontent.com/f070f7e2856e991b811d9cd4db4ceec92a4b66af9b53f71184c313e75397e578/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f737570657262616c6973742f6d6f6e6f6c6f672d676f6f676c652d636c6f75642d6a736f6e2d666f726d61747465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/superbalist/monolog-google-cloud-json-formatter)[![Total Downloads](https://camo.githubusercontent.com/9d380d9bde70ad3cd5ec2bdad79f0bf9a3c49cd7dbb2584831666c42d833a6c5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f737570657262616c6973742f6d6f6e6f6c6f672d676f6f676c652d636c6f75642d6a736f6e2d666f726d61747465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/superbalist/monolog-google-cloud-json-formatter)[![Build Status](https://camo.githubusercontent.com/0c90415b8b82fda68cd83c162909ad9963388617b24a7e04f4fefdd312866fde/68747470733a2f2f7472617669732d63692e6f72672f537570657262616c6973742f6d6f6e6f6c6f672d676f6f676c652d636c6f75642d6a736f6e2d666f726d61747465722e737667)](https://travis-ci.org/Superbalist/monolog-google-cloud-json-formatter)

This library works in conjunction with

fluent-plugin-google-cloud is an output plugin for fluentd which sends logs to the Google Cloud Logging API.

This formatter outputs logs entries in json which the fluent-plugin-google-cloud application understands.

Installation
------------

[](#installation)

```
composer require munir131/monolog-google-cloud-json-formatter
```

Usage
-----

[](#usage)

```
use Monolog\Logger;
use Monolog\Handler\StreamHandler;
use Superbalist\Monolog\Formatter;

// create a handler
$handler = new StreamHandler('path/to/your.log', Logger::WARNING);

// use custom formatter in handler
$handler->setFormatter(new GoogleCloudJsonFormatter());

// create a log channel
$log = new Logger('name');
$log->pushHandler($handler);

// add records to the log
$log->addWarning('Foo');
$log->addError('Bar');
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~2079 days

Total

2

Last Release

1617d ago

PHP version history (2 changes)1.0.0PHP &gt;=5.4.0

1.0.1PHP &gt;=7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/d3cda0024a3df5de723a16e8f6681238b1146afd40cc41962ae96f44bd875f7a?d=identicon)[munir131](/maintainers/munir131)

![](https://www.gravatar.com/avatar/8152d98e435036ab2678fe55d3a83f6753fd0c8a3fb18b581dbea84719839d89?d=identicon)[improwised](/maintainers/improwised)

---

Top Contributors

[![matthewgoslett](https://avatars.githubusercontent.com/u/1571743?v=4)](https://github.com/matthewgoslett "matthewgoslett (8 commits)")[![munir131](https://avatars.githubusercontent.com/u/6319375?v=4)](https://github.com/munir131 "munir131 (3 commits)")[![ru90](https://avatars.githubusercontent.com/u/12201673?v=4)](https://github.com/ru90 "ru90 (3 commits)")[![etiennemarais](https://avatars.githubusercontent.com/u/4479918?v=4)](https://github.com/etiennemarais "etiennemarais (1 commits)")[![ivoba](https://avatars.githubusercontent.com/u/471254?v=4)](https://github.com/ivoba "ivoba (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/munir131-monolog-google-cloud-json-formatter/health.svg)

```
[![Health](https://phpackages.com/badges/munir131-monolog-google-cloud-json-formatter/health.svg)](https://phpackages.com/packages/munir131-monolog-google-cloud-json-formatter)
```

###  Alternatives

[symfony/monolog-bridge

Provides integration for Monolog with various Symfony components

2.6k189.7M258](/packages/symfony-monolog-bridge)[rollbar/rollbar

Monitors errors and exceptions and reports them to Rollbar

33723.7M82](/packages/rollbar-rollbar)[illuminate/log

The Illuminate Log package.

6224.3M518](/packages/illuminate-log)[honeybadger-io/honeybadger-php

Honeybadger PHP library

381.5M4](/packages/honeybadger-io-honeybadger-php)[graycore/magento2-stdlogging

A Magento 2 module that changes all logging handlers to stdout

2382.6k](/packages/graycore-magento2-stdlogging)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
