You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@aurora.apache.org by "John Sirois (JIRA)" <ji...@apache.org> on 2016/07/01 19:51:11 UTC

[jira] [Created] (AURORA-1730) Improve pystachio Logger schema

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)