PHPackages                             volta-framework/component-logging - 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. volta-framework/component-logging

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

volta-framework/component-logging
=================================

Logging based on the Psr/Log Interfaces

v1.0.0(2y ago)0321MITPHPPHP &gt;=8.1

Since Jul 2Pushed 2y agoCompare

[ Source](https://github.com/volta-framework/component-logging)[ Packagist](https://packagist.org/packages/volta-framework/component-logging)[ Docs](https://github.com/volta-framework/component-logging)[ RSS](/packages/volta-framework-component-logging/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (1)

- For the (UML)Domain model see [the README in the main folder](./README.md)
- To see the loggers in action see [the README in the public folder](./public/README.md)
- For more details see [the README in the libraries folder](./libraries/README.md)

Volta Component Logging
=======================

[](#volta-component-logging)

Component used for logging information.

The component is based on the Psr\\Log Interfaces. For more information about these interfaces see .

 ```
classDiagram
    direction BT

    class Spl_Exception
    class Spl_Stringable {  }
    class Spl_Throwable {  }
    class Psr_Log_LoggerInterface {  }
    class Psr_Log_LoggerTrait {  }
    class Volta_Component_Logging_Exception
    class Volta_Component_Logging_BaseLogger {
        +setLevels(string[]):void
        +getLevels():string[]
        +hasLevel(string $level):bool
    }
    class Volta_Component_Logging_ConsoleLogger {
        +__construct(string[] levels)
    }
    class Volta_Component_Logging_FileLogger {
        +__construct(string path, bool create=true)
        +__destruct()
    }
    class Volta_Component_Logging_PassthroughLogger {
        +__construct(mixed callback)
    }
    style Psr_Log_LoggerTrait opacity: 0.2
    style Psr_Log_LoggerInterface opacity: 0.2
    style Spl_Throwable opacity: 0.2
    style Spl_Stringable opacity: 0.2
    style Spl_Exception opacity: 0.2
    style Volta_Component_Logging_Exception stroke:#FFa500
    style Volta_Component_Logging_BaseLogger stroke:#FFa500
    style Volta_Component_Logging_FileLogger stroke:#FFa500
    style Volta_Component_Logging_ConsoleLogger stroke:#FFa500
    style Volta_Component_Logging_PassthroughLogger stroke:#FFa500

    Volta_Component_Logging_ConsoleLogger--|>Volta_Component_Logging_BaseLogger: extends
    Volta_Component_Logging_FileLogger--|>Volta_Component_Logging_BaseLogger: extends
    Volta_Component_Logging_PassthroughLogger--|>Volta_Component_Logging_BaseLogger: extends
    Volta_Component_Logging_BaseLogger
