Subversion Repository Public Repository

pgleadershipbook

This repository has no backups
This repository's network speed is throttled to 100KB/sec

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php namespace CodeIgniter\Test\Mock;

/**
 * Class MockFileLogger
 *
 * Extends FileHandler, exposing some inner workings
 */

class MockFileLogger extends \CodeIgniter\Log\Handlers\FileHandler
{
	/**
	 * Where would the log be written?
	 */
	public $destination;

	//--------------------------------------------------------------------

	public function __construct(array $config)
	{
		parent::__construct($config);
		$this->handles     = $config['handles'] ?? [];
		$this->destination = $this->path . 'log-' . date('Y-m-d') . '.' . $this->fileExtension;
	}

}

Commits for pgleadershipbook/trunk/system/Test/Mock/MockFileLogger.php

Diff revisions: vs.
Revision Author Commited Message
2 tporter picture tporter Thu 04 Feb, 2021 09:33:04 +0000

PG Leadership book initial commit