set custom logger
This commit is contained in:
parent
3b2caa7326
commit
726935f77b
@ -1 +1 @@
|
|||||||
Subproject commit b5068ceb033b6a857d463d6d91aa8cbdf07913e9
|
Subproject commit e441c50809cc18018c57aaf535549f9a2c0b9583
|
@ -35,7 +35,9 @@ from pus_tm.factory_hook import ccsds_tm_handler
|
|||||||
try:
|
try:
|
||||||
from tmtccmd.runner import initialize_tmtc_commander, run_tmtc_commander, add_ccsds_handler
|
from tmtccmd.runner import initialize_tmtc_commander, run_tmtc_commander, add_ccsds_handler
|
||||||
from tmtccmd.ccsds.handler import CcsdsTmHandler
|
from tmtccmd.ccsds.handler import CcsdsTmHandler
|
||||||
|
from tmtccmd.utility.logger import TMTC_LOGGER_NAME
|
||||||
import spacepackets
|
import spacepackets
|
||||||
|
from spacepackets.log import set_custom_console_logger_name
|
||||||
except ImportError as error:
|
except ImportError as error:
|
||||||
run_tmtc_commander = None
|
run_tmtc_commander = None
|
||||||
initialize_tmtc_commander = None
|
initialize_tmtc_commander = None
|
||||||
@ -49,6 +51,7 @@ def main():
|
|||||||
hook_obj = EiveHookObject()
|
hook_obj = EiveHookObject()
|
||||||
print(f'-- eive tmtc version {__version__} --')
|
print(f'-- eive tmtc version {__version__} --')
|
||||||
print(f'-- spacepackets version {spacepackets.__version__} --')
|
print(f'-- spacepackets version {spacepackets.__version__} --')
|
||||||
|
set_custom_console_logger_name(logger_name=TMTC_LOGGER_NAME)
|
||||||
initialize_tmtc_commander(hook_object=hook_obj)
|
initialize_tmtc_commander(hook_object=hook_obj)
|
||||||
ccsds_handler = CcsdsTmHandler()
|
ccsds_handler = CcsdsTmHandler()
|
||||||
ccsds_handler.add_tm_handler(apid=PUS_APID, pus_tm_handler=ccsds_tm_handler, max_queue_len=50)
|
ccsds_handler.add_tm_handler(apid=PUS_APID, pus_tm_handler=ccsds_tm_handler, max_queue_len=50)
|
||||||
|
Loading…
Reference in New Issue
Block a user