Project

General

Profile

Actions

Feature #2487

closed

simulated logger

Added by Anchi Cheng over 11 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
developer tool
Target version:
Start date:
08/21/2013
Due date:
% Done:

0%

Estimated time:
Deliverable:

Description

Because Leginon node classes always assumes that there is a logger attribute, it is hard to do a direct python command testing. A simulated logger makes it possible to test, for example, correctorclient.CorrectorClient()

Actions #1

Updated by Anchi Cheng over 11 years ago

  • Category set to Leginon subsystem
  • Status changed from Assigned to In Code Review
  • Assignee changed from Anchi Cheng to Jim Pulokas

r17833 adds this.

Use it like this:

from leginon import correctorclient,simulogger
c_client = correctorclient.CorrectorClient()
c_client.logger = simulogger.Logger()

Actions #2

Updated by Anchi Cheng about 11 years ago

  • Category changed from Leginon subsystem to developer tool
  • Status changed from In Code Review to Closed
  • Target version set to myami-3.0

no one to review

Actions

Also available in: Atom PDF