Micro Applications

With Phalcon you can create “Micro-Framework like” applications. By doing this, you only need to write a minimal amount of code to create a PHP application. Micro applications are suitable to implement small applications, APIs and prototypes in a practical way. use Phalcon\Mvc\Micro; $app = new Micro(); $app->get( "/say/welcome/{name}", function ($name) { echo "<h1>Welcome $name!</h1>"; } ); $app->handle(); Creating a Micro Application Phalcon\Mvc\Micro

Logging

Phalcon\Logger is a component whose purpose is to provide logging services for applications. It offers logging to different backends using different adapters. It also offers transaction logging, configuration options, different formats and filters. You can use the Phalcon\Logger for every logging need your application has, from debugging processes to tracing application flow. Adapters This component makes use of adapters to store the logged messages. The use of adapters allows for a common logg

Logger\Multiple::notice

public notice (mixed $message, [array $context]) Sends/Writes a notice message to the log

Logger\Multiple::push

public push (Phalcon\Logger\AdapterInterface $logger) Pushes a logger to the logger tail

Logger\Multiple::setFormatter

public setFormatter (Phalcon\Logger\FormatterInterface $formatter) Sets a global formatter

Logger\Multiple::setLogLevel

public setLogLevel (mixed $level) Sets a global level

Logger\Multiple::warning

public warning (mixed $message, [array $context]) Sends/Writes a warning message to the log

Logger\Multiple::log

public log (mixed $type, [mixed $message], [array $context]) Sends a message to each registered logger

Logger\Multiple::info

public info (mixed $message, [array $context]) Sends/Writes an info message to the log

Logger\Multiple::debug

public debug (mixed $message, [array $context]) Sends/Writes a debug message to the log