A text file containing generator logs.

A log file is a \FeaturePhp\File\TextFile generated by a \FeaturePhp\Generator\Generator. It contains a log of a generator's actions (in particular, generated files).

package Default
inherited_from \FeaturePhp\File\TextFile

 Methods

Creates a log file.

__construct(string $fileTarget) 
inherited_from \FeaturePhp\File\TextFile::__construct()

Parameters

$fileTarget

string

Creates a file.

__construct(string $fileTarget) 
Inherited

Parameters

$fileTarget

string

Appends text content to the file.

append(string $content) 
Inherited

Parameters

$content

string

Returns the log file's content.

getContent() : \FeaturePhp\File\TextFileContent

Tabular output is generated.

inherited_from \FeaturePhp\File\TextFile::getContent()

Returns

\FeaturePhp\File\TextFileContent

Returns the file's content.

getContent() : \FeaturePhp\File\FileContent
Inherited

Returns

\FeaturePhp\File\FileContent

Returns the file's target.

getTarget() : string
Inherited

Returns

string

Creates an entry in the log file.

log(\FeaturePhp\Artifact\Artifact|null $artifact, string $content) 

Parameters

$artifact

\FeaturePhp\Artifact\Artifactnull

a log entry may refer to an artifact

$content

string

 Properties

 

the content as text (usually UTF-8)

$content : string

Default

 

the file target in the generated product

$fileTarget : string

Default

 

an array of array($artifact, $content)'s with logging information

$logs : array<mixed,array>

Default