apns-php
 All Data Structures Files Functions Variables Groups Pages
ApnsPHP_Log_Embedded Class Reference

A simple logger. More...

Inheritance diagram for ApnsPHP_Log_Embedded:
Inheritance graph
Collaboration diagram for ApnsPHP_Log_Embedded:
Collaboration graph

Public Member Functions

void log (string $sMessage)
 Logs a message. More...
 

Detailed Description

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).

Definition at line 31 of file Embedded.php.

Member Function Documentation

void log ( string  $sMessage)

Logs a message.

Parameters
$sMessageThe message.

Implements ApnsPHP_Log_Interface.

Definition at line 38 of file Embedded.php.

39  {
40  printf("%s ApnsPHP[%d]: %s\n",
41  date('r'), getmypid(), trim($sMessage)
42  );
43  }

The documentation for this class was generated from the following file: