apns-php
 All Data Structures Files Functions Variables Groups Pages
Embedded.php
Go to the documentation of this file.
1 <?php
2 /**
3  * @file
4  * ApnsPHP_Log_Embedded class definition.
5  *
6  * LICENSE
7  *
8  * This source file is subject to the new BSD license that is bundled
9  * with this package in the file LICENSE.txt.
10  * It is also available through the world-wide-web at this URL:
11  * http://code.google.com/p/apns-php/wiki/License
12  * If you did not receive a copy of the license and are unable to
13  * obtain it through the world-wide-web, please send an email
14  * to aldo.armiento@gmail.com so we can send you a copy immediately.
15  *
16  * @author (C) 2010 Aldo Armiento (aldo.armiento@gmail.com)
17  * @version $Id$
18  */
19 
20 /**
21  * A simple logger.
22  *
23  * This simple logger implements the Log Interface and is the default logger for
24  * all ApnsPHP_Abstract based class.
25  *
26  * This simple logger outputs The Message to standard output prefixed with date,
27  * service name (ApplePushNotificationService) and Process ID (PID).
28  *
29  * @ingroup ApnsPHP_Log
30  */
32 {
33  /**
34  * Logs a message.
35  *
36  * @param $sMessage @type string The message.
37  */
38  public function log($sMessage)
39  {
40  printf("%s ApnsPHP[%d]: %s\n",
41  date('r'), getmypid(), trim($sMessage)
42  );
43  }
44 }
void log(string $sMessage)
Logs a message.
Definition: Embedded.php:38
A simple logger.
Definition: Embedded.php:31
The Log Interface.
Definition: Interface.php:33