示例#1
0
def add_entry(action, number, where):
    """Formatted statistics log entry so it can be processed for daily stats.

  The format is simple enough that it doesn't require a regexp for faster
  processing.
  """
    stats_framework.add_entry('%s; %d; %s' %
                              (_ACTION_NAMES[action], number, where))
示例#2
0
def add_entry(action, number, where):
  """Formatted statistics log entry so it can be processed for daily stats.

  The format is simple enough that it doesn't require a regexp for faster
  processing.
  """
  stats_framework.add_entry(
      '%s; %d; %s' % (_ACTION_NAMES[action], number, where))
示例#3
0
def add_entry(**kwargs):
  """Formatted statistics log entry so it can be processed for statistics."""
  stats_framework.add_entry(_pack_entry(**kwargs))
示例#4
0
 def get(self2):
   stats_framework.add_entry('Hello')
   self2.response.write('Yay')
示例#5
0
 def get(self2):
     stats_framework.add_entry('Hello')
     self2.response.write('Yay')
示例#6
0
文件: stats.py 项目: rmistry/luci-py
def add_entry(**kwargs):
    """Formatted statistics log entry so it can be processed for statistics."""
    stats_framework.add_entry(_pack_entry(**kwargs))