hpimdm/Main.py
def test(router_name, server_logger_ip):
    """
    Test setting.... Used to send logs to a remote server
    """
    global logger
    socketHandler = logging.handlers.SocketHandler(server_logger_ip,
                                                   logging.handlers.DEFAULT_TCP_LOGGING_PORT)
    # don't bother with a formatter, since a socket handler sends the event as
    # an unformatted pickle
    socketHandler.addFilter(RootFilter(router_name))
    logger.addHandler(socketHandler)

    Test setting.... Used to send logs to a remote server
    
Test setting.... Used to send logs to a remote server
Test setting .... Used to send logs to a remote server
def test(router_name, server_logger_ip):
    global logger
    socketHandler = logging.handlers.SocketHandler(server_logger_ip,
                                                   logging.handlers.DEFAULT_TCP_LOGGING_PORT)
    socketHandler.addFilter(RootFilter(router_name))
    logger.addHandler(socketHandler)
def test ( router_name , server_logger_ip ) : global logger socketHandler = logging . handlers . SocketHandler ( server_logger_ip , logging . handlers . DEFAULT_TCP_LOGGING_PORT ) socketHandler . addFilter ( RootFilter ( router_name ) ) logger . addHandler ( socketHandler )
Test setting.... Used to send logs to a remote server
Test setting .... Used to send logs to a remote server
"""
    Test setting.... Used to send logs to a remote server
    """ # don't bother with a formatter, since a socket handler sends the event as # an unformatted pickle
router_name
server_logger_ip