2013-11-25 17:57:19 -08:00

45 lines
1.2 KiB
PHP
Executable File

<?php
/**
* @file
* ApnsPHP_Log_Embedded class definition.
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://code.google.com/p/apns-php/wiki/License
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to aldo.armiento@gmail.com so we can send you a copy immediately.
*
* @author (C) 2010 Aldo Armiento (aldo.armiento@gmail.com)
* @version $Id$
*/
/**
* A simple logger.
*
* This simple logger implements the Log Interface and is the default logger for
* all ApnsPHP_Abstract based class.
*
* This simple logger outputs The Message to standard output prefixed with date,
* service name (ApplePushNotificationService) and Process ID (PID).
*
* @ingroup ApnsPHP_Log
*/
class ApnsPHP_Log_Embedded implements ApnsPHP_Log_Interface
{
/**
* Logs a message.
*
* @param $sMessage @type string The message.
*/
public function log($sMessage)
{
printf("%s ApnsPHP[%d]: %s\n",
date('r'), getmypid(), trim($sMessage)
);
}
}