r2 - 01 Aug 2006 - 11:49:15 - AshkanSoltaniYou are here: OSAF >  Journal Web  >  ContributorNotes > AshkanSoltani > ChandlerInstrumentationClassNotes

Meta Instrumentation Class

system info

  • username (entered by users or pulled from system?)
  • system ip?
  • log_version method
  • logfilename = username+logversionmethod
  • logfile path? (profileDir + logfilename)

logfile setup

function to setup the instrumentation logfile

log event

function that takes a blockEvent

  • depending on the type of blockEvent, it knows what to print out
  • do i have access to Block.inSideRecursiveCall here or do i need it as an argument?

logfile upload

function to uplaod the logfile

  • call logfilerotate
  • scan logfile queue for files that havent been uplaoded
  • call logfile upload (using twisted or ??) * delete the old logfile if successful

logfile rotate

function to rotate the logfile?

  • names the old logfile upload-instrumentation-username-logfile revision version
  • gzip's the logfile?
  • creates the new ones (call logfile setup?)

questions:

  • do i need to open/close the logfile after every write?
  • where do i put this stuff in the code
  • what about the inSideRecursiveCall piece.. that has to live in Block.py right?
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r2 < r1 | More topic actions
 
Open Source Applications Foundation
Except where otherwise noted, this site and its content are licensed by OSAF under an Creative Commons License, Attribution Only 3.0.
See list of page contributors for attributions.