3 g÷ÔY{ã@spdZddlZejdƒZdaddddd d d gZd d„Zd d„Zdd„Zdd„Z dd„Z dd „Z dd „Z dd „Z dS)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Ú websocketFÚ enableTraceÚdumpÚerrorÚdebugÚtraceÚisEnabledForErrorÚisEnabledForDebugcCs,|a|r(tjstjtjƒƒtjtjƒdS)zl turn on/off the traceability. traceable: boolean value. if set True, traceability is enabled. N)Ú _traceEnabledÚ_loggerÚhandlersÚ addHandlerÚloggingÚ StreamHandlerÚsetLevelÚDEBUG)Z traceable©rúC/Users/olari/OneDrive/sandbox/awsBlog2/lambda/websocket/_logging.pyrs cCs.tr*tjd|dƒtj|ƒtjdƒdS)Nz--- z ---z-----------------------)r r r)ÚtitleÚmessagerrrr-s cCstj|ƒdS)N)r r)Úmsgrrrr4scCstj|ƒdS)N)r Úwarning)rrrrr8srcCstj|ƒdS)N)r r)rrrrr<scCstrtj|ƒdS)N)r r r)rrrrr@scCs tjtjƒS)N)r Ú isEnabledForrÚERRORrrrrrEscCs tjtjƒS)N)r rrrrrrrr Is)Ú__doc__rÚ getLoggerr r Ú__all__rrrrrrrr rrrrÚs