
    .                        d Z ddlZ ej                  d      Z	 ddlmZ ej                   e              dag dZ	 ej                         fd	Zd
 Zd Zd Zd Zd Zd Zd Zy# e$ r  G d dej                        ZY bw xY w)aL  
websocket - WebSocket client library for Python

Copyright (C) 2010 Hiroki Ohtani(liris)

    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.

    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with this library; if not, write to the Free Software
    Foundation, Inc., 51 Franklin Street, Fifth Floor,
    Boston, MA  02110-1335  USA

    N	websocket)NullHandlerc                       e Zd Zd Zy)r   c                      y N )selfrecords     %lib/third_party/websocket/_logging.pyemitzNullHandler.emit   s        N)__name__
__module____qualname__r   r   r   r   r   r      s    	r   r   F)enableTracedumperrorwarningdebugtraceisEnabledForErrorisEnabledForDebugc                 ~    | a | r9t        j                  |       t        j                  t        j
                         yy)zl
    turn on/off the traceability.

    traceable: boolean value. if set True, traceability is enabled.
    N)_traceEnabled_logger
addHandlersetLevelloggingDEBUG)	traceablehandlers     r   r   r   (   s1     M7#' r   c                     t         rFt        j                  d| z   dz          t        j                  |       t        j                  d       y y )Nz--- z ---z-----------------------r   r   r   )titlemessages     r   r   r   5   s8    funv-.g/0 r   c                 .    t         j                  |        y r   )r   r   msgs    r   r   r   <       MM#r   c                 .    t         j                  |        y r   )r   r   r'   s    r   r   r   @   s    OOCr   c                 .    t         j                  |        y r   )r   r   r'   s    r   r   r   D   r)   r   c                 <    t         rt        j                  |        y y r   r#   r'   s    r   r   r   H   s    c r   c                  H    t         j                  t        j                        S r   )r   isEnabledForr   ERRORr   r   r   r   r   M       ..r   c                  H    t         j                  t        j                        S r   )r   r.   r   r   r   r   r   r   r   Q   r0   r   )__doc__r   	getLoggerr   r   ImportErrorHandlerr   r   __all__StreamHandlerr   r   r   r   r   r   r   r   r   r   r   <module>r8      s   * 
'

K
(#   ;= !5 &;W%:%:%< 
(1
//m  goo s   A& &BB