3 # Copyright (c) 2018 All rights reserved
4 # This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
13 from xtesting.core import feature
16 def getLogger(module_name):
17 logger = logging.getLogger(module_name)
18 log_file = "{}/{}.log".format("/var/lib/xtesting/results", "bgpvpn")
19 if not os.path.exists(log_file):
21 feature.Feature.configure_logger(logger, log_file)