PHPackages                             digital-canvas/simple-file-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. digital-canvas/simple-file-logger

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

digital-canvas/simple-file-logger
=================================

A simple logger that logs messages to a file.

1.0.0(11y ago)023MITPHP

Since Aug 25Pushed 10y ago2 watchersCompare

[ Source](https://github.com/digital-canvas/simple-file-logger)[ Packagist](https://packagist.org/packages/digital-canvas/simple-file-logger)[ RSS](/packages/digital-canvas-simple-file-logger/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Simple File Logger
==================

[](#simple-file-logger)

[![Build Status](https://camo.githubusercontent.com/176356ba72f18b1650bd27b1e3b16ea01bf2678cad3fd9561e7428b65a8ce87c/68747470733a2f2f7472617669732d63692e6f72672f6469676974616c2d63616e7661732f73696d706c652d66696c652d6c6f676765722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/digital-canvas/simple-file-logger)

A simple logger that logs messages to a file.

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

[](#installation)

Install with composer

```
php composer.phar require digital-canvas/simple-file-logger
```

or add the following to your composer.json

```
"digital-canvas/simple-file-logger" : "dev-master"
```

```
// Create Logger instance
$file = "path/to/log/file.log";
$logger = new SimpleFileLogger($file);

// Log DEBUG message
$logger->debug("DEBUG log message");
$logger->log(SimpleFileLogger::DEBUG, "DEBUG log message");

// Log INFO message
$logger->info("INFO log message");
$logger->log(SimpleFileLogger::INFO, "INFO log message");

// Log NOTICE message
$logger->notice("NOTICE log message");
$logger->log(SimpleFileLogger::NOTICE, "NOTICE log message");

// Log WARNING message
$logger->warning("WARNING log message");
$logger->log(SimpleFileLogger::WARNING, "WARNING log message");

// Log ERROR message
$logger->error("ERROR log message");
$logger->log(SimpleFileLogger::ERROR, "ERROR log message");

// Log CRITICAL message
$logger->critical("CRITICAL log message");
$logger->log(SimpleFileLogger::CRITICAL, "CRITICAL log message");

// Log ALERT message
$logger->alert("ALERT log message");
$logger->log(SimpleFileLogger::ALERT, "ALERT log message");

// Log EMERGENCY message
$logger->emergency("EMERGENCY log message");
$logger->log(SimpleFileLogger::EMERGENCY, "EMERGENCY log message");

// Log with extra data
$logger->log(SimpleFileLogger::INFO, "INFO log message", array('user' => "Bob", "exception" => new Exception()));
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

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

Unknown

Total

1

Last Release

4274d ago

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/4b9af1053a78582b9127b42d078505e8e989f0a03a3a5f1dc2f38341b05d4b68?d=identicon)[digitalcanvas](/maintainers/digitalcanvas)

---

Top Contributors

[![jonbernardi](https://avatars.githubusercontent.com/u/38191?v=4)](https://github.com/jonbernardi "jonbernardi (9 commits)")

### Embed Badge

![Health badge](/badges/digital-canvas-simple-file-logger/health.svg)

```
[![Health](https://phpackages.com/badges/digital-canvas-simple-file-logger/health.svg)](https://phpackages.com/packages/digital-canvas-simple-file-logger)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.1k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M93](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M137](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[datadog/php-datadogstatsd

An extremely simple PHP datadogstatsd client

19124.6M15](/packages/datadog-php-datadogstatsd)

PHPackages © 2026

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