Modules

Kohana_Log_StdErr
extends Log_Writer
extends Kodoc_Missing
extends Kohana_Kodoc_Missing

This class, or a class parent, could not be found or loaded. This could be caused by a missing module or other dependancy. The documentation for class may not be complete!

STDERR log writer. Writes out messages to STDERR.

package
Kohana
category
Logging
author
Kohana Team
copyright
© 2008-2010 Kohana Team
license
http://kohanaphp.com/license

Class declared in SYSPATH/classes/kohana/log/stderr.php on line 11.

Constants

  • None

Properties

  • None

Methods

public write( array $messages ) (defined in Kohana_Log_StdErr)

Writes each of the messages to STDERR.

$writer->write($messages);

Parameters

  • array $messages required - Messages

Return Values

  • void

Source Code

public function write(array $messages)
{
	// Set the log line format
	$format = 'time --- type: body';

	foreach ($messages as $message)
	{
		// Writes out each message
		fwrite(STDERR, PHP_EOL.strtr($format, $message));
	}
}

public static create_class( string $class ) (defined in Kohana_Kodoc_Missing)

Creates classes when they are otherwise not found.

Kodoc::create_class('ThisClassDoesNotExist');

All classes created will extend Kodoc_Missing.

Parameters

  • string $class required - Class name

Tags

  • Since - 3.0.7

Return Values

  • boolean

Source Code

public static function create_class($class)
{
	if ( ! class_exists($class))
	{
		// Create a new missing class
		eval("class {$class} extends Kodoc_Missing {}");
	}

	return TRUE;
}