當前位置: 首頁>>代碼示例>>Python>>正文


Python logger.Logger類代碼示例

本文整理匯總了Python中ion.agents.platform.rsn.simulator.logger.Logger的典型用法代碼示例。如果您正苦於以下問題:Python Logger類的具體用法?Python Logger怎麽用?Python Logger使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了Logger類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1:

#!/usr/bin/env python

"""
@package ion.agents.platform.rsn.test.oms_test_mixin
@file    ion/agents/platform/rsn/test/oms_test_mixin.py
@author  Carlos Rueda
@brief   A mixin to facilitate test cases for OMS objects following the
         OMS-CI interface.
"""

__author__ = 'Carlos Rueda'
__license__ = 'Apache 2.0'


from ion.agents.platform.rsn.simulator.logger import Logger
log = Logger.get_logger()

from ion.agents.platform.test.helper import HelperTestMixin

from ion.agents.platform.responses import NormalResponse, InvalidResponse

import time
import ntplib
from gevent.pywsgi import WSGIServer
import socket
import yaml


# some bogus IDs
BOGUS_PLATFORM_ID = 'bogus_plat_id'
BOGUS_ATTR_NAMES = ['bogus_attr1', 'bogus_attr2']
開發者ID:MauriceManning,項目名稱:coi-services,代碼行數:31,代碼來源:oms_test_mixin.py

示例2: FakeProcess

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 = ''
開發者ID:wbollenbacher,項目名稱:coi-services,代碼行數:31,代碼來源:test_mission_executive.py


注:本文中的ion.agents.platform.rsn.simulator.logger.Logger類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。