
                             S SK r S SKJr  SrSrSqS rS\ R                  S4S jrS r	S	 r
S
 r " S S\ R                  5      r\ R                  " S5      R                  \" 5       5        g)    N)SessionzAmazon Web Servicesz1.14.16c                      [        S0 U D6qg)z
Set up a default session, passing through any parameters to the session
constructor. There is no need to call this unless you wish to pass custom
parameters, because a default session will be created for you.
N )r   DEFAULT_SESSION)kwargss    !lib/third_party/boto3/__init__.pysetup_default_sessionr	      s     ''O    boto3c                    Uc  Sn[         R                  " U 5      nUR                  U5        [         R                  " 5       nUR                  U5        [         R                  " U5      nUR                  U5        UR                  U5        g)a  
Add a stream handler for the given name and level to the logging module.
By default, this logs all boto3 messages to ``stdout``.

    >>> import boto3
    >>> boto3.set_stream_logger('boto3.resources', logging.INFO)

For debugging purposes a good choice is to set the stream logger to ``''``
which is equivalent to saying "log everything".

.. WARNING::
   Be aware that when logging anything from ``'botocore'`` the full wire
   trace will appear in your logs. If your payloads contain sensitive data
   this should not be used in production.

:type name: string
:param name: Log name
:type level: int
:param level: Logging level, e.g. ``logging.INFO``
:type format_string: str
:param format_string: Log message format
Nz0%(asctime)s %(name)s [%(levelname)s] %(message)s)logging	getLoggersetLevelStreamHandler	FormattersetFormatter
addHandler)namelevelformat_stringloggerhandler	formatters         r   set_stream_loggerr   %   ss    . Jt$F
OOE##%GU!!-0I#
gr
   c                  0    [         c
  [        5         [         $ )z{
Get the default session, creating one if needed.

:rtype: :py:class:`~boto3.session.Session`
:return: The default session
)r   r	   r   r
   r   _get_default_sessionr   H   s     r
   c                  6    [        5       R                  " U 0 UD6$ )zt
Create a low-level service client by name using the default session.

See :py:meth:`boto3.session.Session.client`.
)r   clientargsr   s     r   r   r   U   s      !(($9&99r
   c                  6    [        5       R                  " U 0 UD6$ )zu
Create a resource service client by name using the default session.

See :py:meth:`boto3.session.Session.resource`.
)r   resourcer   s     r   r"   r"   ^   s      !**D;F;;r
   c                       \ rS rSrS rSrg)NullHandleri   c                     g )Nr   )selfrecords     r   emitNullHandler.emitj   s    r
   r   N)__name__
__module____qualname____firstlineno__r)   __static_attributes__r   r
   r   r$   r$   i   s    r
   r$   )r   boto3.sessionr   
__author____version__r   r	   DEBUGr   r   r   r"   Handlerr$   r   r   r   r
   r   <module>r5      st     ! #
 ( #'--t  F
:<'// 
   '  % %km 4r
   