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

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

edujugon/laravel-log
====================

Simple API to write logs for Laravel.

1.2.0(8y ago)2010.7k↓75%5[1 issues](https://github.com/Edujugon/laravel-log/issues)MITPHP

Since Feb 28Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Edujugon/laravel-log)[ Packagist](https://packagist.org/packages/edujugon/laravel-log)[ RSS](/packages/edujugon-laravel-log/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (3)Versions (6)Used By (0)

Laravel Log Package
===================

[](#laravel-log-package)

Simple API to write logs for Laravel.

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

[](#installation)

##### Type in console:

[](#type-in-console)

```
composer require edujugon/laravel-log

```

**Laravel 5.5 or higher?**

Then you don't have to either register or add the alias, this package uses Package Auto-Discovery's feature, and should be available as soon as you install it via Composer.

(Laravel &lt; 5.5) Register the Log service by adding it to the providers array.

```
'providers' => array(
        ...
        Edujugon\Log\Providers\LogServiceProvider::class
    )

```

##### Publish the package's configuration file to the application's own config directory.

[](#publish-the-packages-configuration-file-to-the-applications-own-config-directory)

```
php artisan vendor:publish --provider="Edujugon\Log\Providers\LogServiceProvider" --tag="config"

```

The above command will generate a new file under your laravel app config folder called `log.php`

Configuration
-------------

[](#configuration)

Update the `log.php` file with your data.

API List
--------

[](#api-list)

- [path](https://github.com/edujugon/laravel-log/#path)
- [level](https://github.com/edujugon/laravel-log/#level)
- [title](https://github.com/edujugon/laravel-log/#title)
- [line](https://github.com/edujugon/laravel-log/#line)
- [name](https://github.com/edujugon/laravel-log/#logname)
- [fileName](https://github.com/edujugon/laravel-log/#filename)
- [days](https://github.com/edujugon/laravel-log/#days)
- [withoutDateTime](https://github.com/edujugon/laravel-log/#withoutdatetime)
- [withoutLoggerDetails](https://github.com/edujugon/laravel-log/#withoutloggerdetails)
- [write](https://github.com/edujugon/laravel-log/#write)

#### path

[](#path)

`path` method sets the path where create / storage the log file.

**Syntax**

```
Edujugon\Log\Log object path($path)
```

#### level

[](#level)

`level` method sets the logging level.

> Available levels: emergency, alert, critical, error, warning, notice, info and debug.

**Syntax**

```
Edujugon\Log\Log object level($level)
```

#### title

[](#title)

`title` method sets the title or main message to be written.

**Syntax**

```
Edujugon\Log\Log object title($title)
```

#### line

[](#line)

`line` method sets a line below the title.

> Notice that you can call this method as many time as lines you need to be written.

**Syntax**

```
Edujugon\Log\Log object line($line)
```

#### logname

[](#logname)

`name` method sets the logger name.

> By default this name is "my-logger"

**Syntax**

```
Edujugon\Log\Log object name($loggerName)
```

#### fileName

[](#filename)

`fileName` method sets the file name.

> Remember to put the name without any extension.

**Syntax**

```
Edujugon\Log\Log object fileName($name)
```

#### days

[](#days)

`days` method sets amount of days to be kept in server.

**Syntax**

```
Edujugon\Log\Log object days($days)
```

> A value "0" means no day limit

#### withoutDateTime

[](#withoutdatetime)

`withoutDateTime` method excludes datetime from log line.

**Syntax**

```
Edujugon\Log\Log object withoutDateTime()
```

#### withoutLoggerDetails

[](#withoutloggerdetails)

`withoutLoggerDetails` method excludes logger details from log line.

**Syntax**

```
Edujugon\Log\Log object withoutLoggerDetails()
```

> Exclude logger name and level

#### write

[](#write)

`write` method writes in log file.

**Syntax**

```
boolean write()
```

Usage samples
-------------

[](#usage-samples)

```
$log = new Log();
$log->fileName('my-personal-log')
    ->title('Stored new record')
    ->line('the record id is 3')
    ->line('Stored by John')
    ->line('This is antoher line')
    ->days(3)
    ->write();

```

Also can do it by its Facade:

```
Log::fileName('my-personal-log')
    ->title('Stored new record')
    ->line('the record id is 3')
    ->line('Stored by John')
    ->line('This is antoher line')
    ->write();

```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 95.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

Every ~102 days

Total

5

Last Release

2959d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2806ab557e2a153347da9fb0e2dbe58ab47ce10bb60ccac71193e8ed67349a23?d=identicon)[edujugon](/maintainers/edujugon)

---

Top Contributors

[![Edujugon](https://avatars.githubusercontent.com/u/4853751?v=4)](https://github.com/Edujugon "Edujugon (22 commits)")[![fromthecove](https://avatars.githubusercontent.com/u/796606?v=4)](https://github.com/fromthecove "fromthecove (1 commits)")

---

Tags

laravellaravel-packagelogloggermonologloglaravelmonolog

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-activitylog

A very simple activity logger to monitor the users of your website or application

5.8k45.4M309](/packages/spatie-laravel-activitylog)[yadahan/laravel-authentication-log

Laravel Authentication Log provides authentication logger and notification for Laravel.

416632.8k5](/packages/yadahan-laravel-authentication-log)[ytake/laravel-fluent-logger

fluent logger for laravel and lumen

63541.6k1](/packages/ytake-laravel-fluent-logger)[shaffe/laravel-mail-log-channel

A package to support logging via email in Laravel

1286.2k](/packages/shaffe-laravel-mail-log-channel)[kitloong/laravel-app-logger

Laravel log for your application

101.2M8](/packages/kitloong-laravel-app-logger)[yzen.dev/mono-processor

This Processor will display in the logs bread crumbs by which you can more quickly and accurately identify the cause of the error.

116.1k](/packages/yzendev-mono-processor)

PHPackages © 2026

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