PHPackages                             ultimadark/logger - 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. ultimadark/logger

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

ultimadark/logger
=================

A class for logging timed durations when loading a page

v2.2(9y ago)023MITPHPPHP &gt;=5.4

Since Sep 3Pushed 9y ago1 watchersCompare

[ Source](https://github.com/simoneddeland/logger)[ Packagist](https://packagist.org/packages/ultimadark/logger)[ Docs](http://eddeland.com)[ RSS](/packages/ultimadark-logger/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (5)Used By (0)

CLog - A class for logging timestamps
=====================================

[](#clog---a-class-for-logging-timestamps)

[![Build Status](https://camo.githubusercontent.com/9731587e64f26bf8db7b36a5cc3eb09256c8f6616356cc24ed64a7dbd0a0a582/68747470733a2f2f7472617669732d63692e6f72672f73696d6f6e656464656c616e642f6c6f676765722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/simoneddeland/logger) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/db8bc1e0d46fc49d3d971093ef12fbfb6ef00c7747052437b257a10561bbe26e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73696d6f6e656464656c616e642f6c6f676765722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/simoneddeland/logger/?branch=master) [![Code Coverage](https://camo.githubusercontent.com/5f5a107a0170611b5af2ccc202a0531d3e72bf2b015cc1acd804e9342f72ecfc/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73696d6f6e656464656c616e642f6c6f676765722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/simoneddeland/logger/?branch=master)

A logging class written as part of a web programming course. Can easily be used with the Anax web framework.

The class CLog can be used to identify which parts of your PHP code are running slowly.

Use of CLog
-----------

[](#use-of-clog)

Create a new CLog instance (optionally setting the decimal precision in the constructor). Then make timestamps in your code where you want to identify how fast/slowly your code is running. Finally, present your results as a table with the built in function timestampAsTable or fetch information about the timestamps with some of the other supplied methods.

The webroot folder contains an example file of how to use CLog in more detail.

Integrating CLog in Anax MVC
----------------------------

[](#integrating-clog-in-anax-mvc)

To integrate CLog with Anax MVC simple add the following line in your "required" part of the composer.json file.

```
"ultimadark/logger": "dev-master"

```

Then update your composer dependencies by running `composer update` in your Anax MVC folder. The CLog class will be autoloaded if you want to create a new CLog object.

The easiest way to make your CLog object available during development is to load it as a service in your CDIFactoryDefault file (in the src/DI folder) like this:

```
$this->setShared('logger', function () {
    $logger = new \ultimadark\Logger\CLog();
    return $logger;
});
```

The logger can then be accessed like any other loaded service.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

4

Last Release

3585d ago

Major Versions

1.0 → v2.02016-09-04

### Community

Maintainers

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

---

Top Contributors

[![simoneddeland](https://avatars.githubusercontent.com/u/12908966?v=4)](https://github.com/simoneddeland "simoneddeland (20 commits)")

---

Tags

loglogginglogger

### Embed Badge

![Health badge](/badges/ultimadark-logger/health.svg)

```
[![Health](https://phpackages.com/badges/ultimadark-logger/health.svg)](https://phpackages.com/packages/ultimadark-logger)
```

###  Alternatives

[analog/analog

Fast, flexible, easy PSR-3-compatible PHP logging package with dozens of handlers.

3511.6M24](/packages/analog-analog)[inpsyde/wonolog

Monolog-based logging package for WordPress.

184631.3k7](/packages/inpsyde-wonolog)[amphp/log

Non-blocking logging for PHP based on Amp, Revolt, and Monolog.

402.8M78](/packages/amphp-log)[apix/log

Minimalist, thin and fast PSR-3 compliant (multi-bucket) logger.

511.1M20](/packages/apix-log)[logtail/monolog-logtail

Logtail handler for Monolog

233.5M3](/packages/logtail-monolog-logtail)[dakatsuka/monolog-fluent-handler

Fluentd Handler for Monolog

11480.8k](/packages/dakatsuka-monolog-fluent-handler)

PHPackages © 2026

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