本文整理汇总了Python中logr.Logr.configure方法的典型用法代码示例。如果您正苦于以下问题:Python Logr.configure方法的具体用法?Python Logr.configure怎么用?Python Logr.configure使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类logr.Logr
的用法示例。
在下文中一共展示了Logr.configure方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: setUp
# 需要导入模块: from logr import Logr [as 别名]
# 或者: from logr.Logr import configure [as 别名]
def setUp(self):
Logr.configure(logging.DEBUG)
self.merge = MergeTransformer()
示例2: setup_path
# 需要导入模块: from logr import Logr [as 别名]
# 或者: from logr.Logr import configure [as 别名]
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from helpers import setup_path
setup_path()
import logging
from logr import Logr
Logr.configure(logging.DEBUG)
from caper import Caper
from caper.parsers.scene import SceneParser
from matchers import has_info
from hamcrest import *
caper = Caper()
def test_closures():
r = caper.parse('Show Name.S01E05.[720p]-GROUP')
assert_that(r, has_info('video', {'resolution': '720p'}))
assert_that(r, has_info('group', 'GROUP'))
示例3: setUp
# 需要导入模块: from logr import Logr [as 别名]
# 或者: from logr.Logr import configure [as 别名]
def setUp(self):
Logr.configure(logging.DEBUG)
self.qc = QueryCondenser()
示例4: setUp
# 需要导入模块: from logr import Logr [as 别名]
# 或者: from logr.Logr import configure [as 别名]
def setUp(self):
Logr.configure(logging.DEBUG)