PHPackages                             pleonovich/log - 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. pleonovich/log

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

pleonovich/log
==============

Simple way to write log information into txt file from PHP.

1.0.0(7y ago)0262Apache-2.0PHPPHP &gt;=5.0.0

Since Nov 10Pushed 7y ago1 watchersCompare

[ Source](https://github.com/pleonovich/log)[ Packagist](https://packagist.org/packages/pleonovich/log)[ Docs](https://github.com/pleonovich/log)[ RSS](/packages/pleonovich-log/feed)WikiDiscussions master Synced 3d ago

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

LOG
===

[](#log)

Simple way to write log information into txt file from PHP

Key features
------------

[](#key-features)

- easy way to write variable information into a file
- Supports diferent kinds of information, such as: string, integer, array, boolean, null

Some examples
-------------

[](#some-examples)

### setPath

[](#setpath)

Setting path to log files folder.

```
// Description:
void setPath ( string $path )

// example:
LOG::setPath('Here path to log folder');
```

### clear

[](#clear)

Clear current log file.

```
// Description:
void clear ()

// example:
LOG::clear();
```

### write

[](#write)

```
// Description:
void write ( string|array|boolean|int|null $text [, string $title = null [, string $filename = null ]] )

// example:
LOG::write('Here is your log information','Log title', 'test');

// result in file - 25.06.2017.test.log.txt
// [2017.06.25][06:50:30][Log title] string(28) "Here is your log information"
```

### writeError

[](#writeerror)

```
// Description:
void writeError ( string $text [, string $title = null ] )

// example:
LOG::writeError('Here is your error log information','Error log title');

// result in file - 25.06.2017.error.log.txt
// [2017.06.25][07:22:01][Error log title] string(34) "Here is your error log information"
```

### writeException

[](#writeexception)

```
// Description:
void writeException ( Exception $e [, string $title = null ] )

// example:
LOG::writeException('Here is exception object','Exception information');
```

### border

[](#border)

```
// Description:
void border ( [ string $title = 'BORDER' ] )

// example:
LOG::border('Border title');
// result in file - 25.06.2017.log.txt
//////////Border title////////////////////////////////////////////////////////////////////////////////
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 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

2743d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a6cedf1f24bd1ebfbe2d48ba65544bad385d9d1a83418d9c44474052df74b68b?d=identicon)[Pavel Leonovich](/maintainers/Pavel%20Leonovich)

---

Top Contributors

[![pleonovich](https://avatars.githubusercontent.com/u/12541362?v=4)](https://github.com/pleonovich "pleonovich (10 commits)")

---

Tags

logphp

### Embed Badge

![Health badge](/badges/pleonovich-log/health.svg)

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

###  Alternatives

[opengento/module-webapi-logger

This module allows you to analyze all the webapi rest done call toward your Magento.

1014.9k](/packages/opengento-module-webapi-logger)

PHPackages © 2026

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