Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
ScssPhp\ScssPhp\Logger\StreamLogger Class Reference

A logger that prints to a PHP stream (for instance stderr) More...

Inheritance diagram for ScssPhp\ScssPhp\Logger\StreamLogger:
ScssPhp\ScssPhp\Logger\LoggerInterface

Public Member Functions

 __construct ($stream, $closeOnDestruct=false)
 
 debug ($message)
 @inheritDoc
 
 warn ($message, $deprecation=false)
 @inheritDoc
 

Detailed Description

A logger that prints to a PHP stream (for instance stderr)

@final

Constructor & Destructor Documentation

◆ __construct()

ScssPhp\ScssPhp\Logger\StreamLogger::__construct ( $stream,
$closeOnDestruct = false )
Parameters
resource$streamA stream resource
bool$closeOnDestructIf true, takes ownership of the stream and close it on destruct to avoid leaks.

Member Function Documentation

◆ debug()

ScssPhp\ScssPhp\Logger\StreamLogger::debug ( $message)

@inheritDoc

Implements ScssPhp\ScssPhp\Logger\LoggerInterface.

◆ warn()

ScssPhp\ScssPhp\Logger\StreamLogger::warn ( $message,
$deprecation = false )

@inheritDoc

Implements ScssPhp\ScssPhp\Logger\LoggerInterface.


The documentation for this class was generated from the following file: