本文整理汇总了Python中ion.agents.platform.rsn.simulator.logger.Logger.set_logger方法的典型用法代码示例。如果您正苦于以下问题:Python Logger.set_logger方法的具体用法?Python Logger.set_logger怎么用?Python Logger.set_logger使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ion.agents.platform.rsn.simulator.logger.Logger
的用法示例。
在下文中一共展示了Logger.set_logger方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: FakeProcess
# 需要导入模块: from ion.agents.platform.rsn.simulator.logger import Logger [as 别名]
# 或者: from ion.agents.platform.rsn.simulator.logger.Logger import set_logger [as 别名]
import gevent
# Pyon imports.
from pyon.agent.agent import ResourceAgentClient
from pyon.event.event import EventPublisher
from pyon.public import log
from pyon.public import IonObject
from pyon.public import RT, PRED
from pyon.util.config import Config
from pyon.util.context import LocalContextMixin
from pyon.util.containers import DotDict
# Ion imports.
from ion.agents.platform.rsn.simulator.logger import Logger
Logger.set_logger(log)
from ion.agents.mission_executive import MissionLoader, MissionScheduler
# Interface imports.
from interface.objects import AttachmentType
# Mock imports.
# from mock import Mock, patch
class FakeProcess(LocalContextMixin):
"""
A fake process used because the test case is not an ion process.
"""
name = ''
id = ''