1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <?php
-
-
-
-
- class Swift_Plugins_Loggers_EchoLogger implements Swift_Plugins_Logger
- {
-
-
- private $_isHtml;
-
-
-
- public function __construct($isHtml = true)
- {
- $this->_isHtml = $isHtml;
- }
-
-
-
- public function add($entry)
- {
- if ($this->_isHtml)
- {
- printf('%s%s%s', htmlspecialchars($entry, ENT_QUOTES), '<br />', PHP_EOL);
- }
- else
- {
- printf('%s%s', $entry, PHP_EOL);
- }
- }
-
-
-
- public function clear()
- {
- }
-
-
-
- public function dump()
- {
- }
-
- }
|