aurora-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Sirois (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AURORA-1730) Improve pystachio Logger schema
Date Fri, 01 Jul 2016 19:51:11 GMT
John Sirois created AURORA-1730:
-----------------------------------

             Summary: Improve pystachio Logger schema
                 Key: AURORA-1730
                 URL: https://issues.apache.org/jira/browse/AURORA-1730
             Project: Aurora
          Issue Type: Task
          Components: Client, Executor
            Reporter: John Sirois
            Priority: Minor


The current pystachio Logger schema is less than ideal, requiring a ~redundant {{mode}} and
{{rotate}} fields.  A plan was discussed in the context of AURORA-1724 in review https://reviews.apache.org/r/49399/
that would end us at something like:
{noformat}
class Standard(Struct):
  pass

class Rotate(Struct):
  log_size = Default(Integer, 100*MB)
  backups = Default(Integer, 5)

class Logger(Struct):
  destination = Default(LoggerDestination, LoggerDestination('file'))
  mode = Default(Choice(Standard, Rotate), Standard())
{noformat} 

This will require a deprecation period though with something like:
{noformat}
Rotate = RotatePolicy

class Logger(Struct):
  destination = Default(LoggerDestination, LoggerDestination('file'))
  mode = Default(Choice(LoggerMode, Standard, Rotate), Standard())
  rotate = RotatePolicy
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message