apns-php
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
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
*/
31
class
ApnsPHP_Log_Embedded
implements
ApnsPHP_Log_Interface
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
}
ApnsPHP_Log_Embedded::log
void log(string $sMessage)
Logs a message.
Definition:
Embedded.php:38
ApnsPHP_Log_Embedded
A simple logger.
Definition:
Embedded.php:31
ApnsPHP_Log_Interface
The Log Interface.
Definition:
Interface.php:33
ApnsPHP
Log
Embedded.php
Generated on Wed May 13 2015 12:35:14 for apns-php by
1.8.6