PHPackages                             superbalist/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. superbalist/monolog-google-cloud-json-formatter

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

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

A Monolog extension for formatting log entries for Google Cloud Logging

1.0.0(10y ago)15353.5k—0.3%6[1 PRs](https://github.com/Superbalist/monolog-google-cloud-json-formatter/pulls)MITPHPPHP &gt;=5.4.0

Since Apr 4Pushed 3y ago33 watchersCompare

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

READMEChangelog (1)Dependencies (1)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 superbalist/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

39

—

LowBetter than 86% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity44

Moderate usage in the ecosystem

Community18

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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

Unknown

Total

1

Last Release

3697d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8b8f533cf5a84c29d3860ee32356f0554ead023247638ea952353fc2f01b2e5d?d=identicon)[superbalist](/maintainers/superbalist)

---

Top Contributors

[![matthewgoslett](https://avatars.githubusercontent.com/u/1571743?v=4)](https://github.com/matthewgoslett "matthewgoslett (8 commits)")[![shad0wfir3](https://avatars.githubusercontent.com/u/20926935?v=4)](https://github.com/shad0wfir3 "shad0wfir3 (3 commits)")[![etiennemarais](https://avatars.githubusercontent.com/u/4479918?v=4)](https://github.com/etiennemarais "etiennemarais (1 commits)")

---

Tags

google-cloudgoogle-cloud-logginggoogle-cloud-platformlogginglogging-librarymonologmonolog-extensionmonolog-google-cloud-json-formatterphpsuperbalist

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/superbalist-monolog-google-cloud-json-formatter/health.svg)](https://phpackages.com/packages/superbalist-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)
