AloFramework Logger 2.1 API
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo

Namespaces

  • AloFramework
    • Log
  • PHP

Classes

  • Config
  • InvalidArgumentException
  • Log

Class Config

Log configuration

AloFramework\Config\AbstractConfig
Extended by AloFramework\Log\Config
Namespace: AloFramework\Log
Author: Art a.molcanovas@gmail.com
Since: 2.0
Located at class/Config.php

Methods summary

public
# __construct( array $cfg = [] )

Constructor

Constructor

Parameters

$cfg
Your custom configuration parameters

Author

Art a.molcanovas@gmail.com
public AloFramework\Log\Config
# set( string $k, mixed $v )

Sets a configuration key

Sets a configuration key

Parameters

$k
The config key
$v
The config value

Returns

AloFramework\Log\Config

Throws

AloFramework\Log\InvalidArgumentException
if a parameter is... invalid.

Author

Art a.molcanovas@gmail.com

Constants summary

string LOG_LABEL

The default log label to use [SYSTEM]

The default log label to use [SYSTEM]

# 'logLabel'
string SAVE_PATH

The default path where to save the log file. [src/logs/YYYY-mm-dd.log]

The default path where to save the log file. [src/logs/YYYY-mm-dd.log]

# 'savePath'
string LOG_LEVEL

The default logging level

The default logging level

Author

Art a.molcanovas@gmail.com
# 'logLevel'

Properties summary

Magic properties

public string $logLevel

The log level

public string $savePath

The save path

public string $logLabel

The log label

AloFramework Logger 2.1 API API documentation generated by ApiGen