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

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

lithemod/log
============

A simple logging library for PHP projects.

v1.0.1(1y ago)03236MITPHPPHP &gt;=7.4

Since Oct 2Pushed 1y agoCompare

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

READMEChangelogDependenciesVersions (3)Used By (6)

Lithe Log
=========

[](#lithe-log)

A simple logging library for PHP applications. This package provides an easy way to log messages with different severity levels (info, warning, error) into log files.

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

[](#installation)

You can install this package via Composer. Run the following command in your terminal:

```
composer require lithemod/log
```

### Alternative Installation

[](#alternative-installation)

If you want to install it directly from the source without using Composer, you can download the source code and place it in your project. Ensure to set the log directory manually using the `Log::dir()` method.

Usage
-----

[](#usage)

To use the logging functionality, follow these simple steps:

1. **Set the Log Directory**: Before logging any messages, set the directory where the logs should be stored.

```
