#NEWLINE# def init_logservice_stub( self , enable = True ) : #NEWLINE# #INDENT# 'Enable the log service stub.\n\n    Args:\n      enable: True, if the fake service should be enabled, False if real\n      service should be disabled.\n\n    Raises:\n      StubNotSupportedError: The logservice stub is unvailable.\n    ' #NEWLINE# if ( not enable ) : #NEWLINE# #INDENT# self . _disable_stub ( LOG_SERVICE_NAME ) #NEWLINE# return #NEWLINE# #UNINDENT# if ( logservice_stub is None ) : #NEWLINE# #INDENT# raise StubNotSupportedError ( 'The logservice stub is not supported in production.' ) #NEWLINE# #UNINDENT# stub = logservice_stub . LogServiceStub ( ) #NEWLINE# self . _register_stub ( LOG_SERVICE_NAME , stub )