/controller

Common controller lib.

Primary LanguageGoApache License 2.0Apache-2.0

controller

Common controller lib. Provides components shared by application controllers.

Requires: Go 1.13+ and Go Modules


Logging

Logging can be configured using environment variables:

  • LOG_DEVELOPMENT: Development mode with human readable logs and (default) verbosity=4.
  • LOG_LEVEL: Set the verbosity.

Verbosity:

  • Info(3) used for Info logging.
  • Info(4) used for Debug logging.
  • Info(5) used for Debug+ high rate events.

Package:

  • filebacked:
    • Info(3): none.
    • Info(4): none.
    • Info(5): file create,delete,read,write.
  • inventory:
    • container:
      • Info(3): reconciler lifecycle.
      • Error(4): channel send failed.
    • model:
      • Info(3):
        • database: lifecycle.
        • journal: journal and watch lifecycle.
      • Info(4):
        • client: (db) transaction lifecycle;model CRUD.
        • journal: event staging.
        • watch: lifecycle.
      • Info(5):
        • watch: event sent,received.
    • web:
      • Info(3):
        • watch: lifecycle.
      • Info(4):
        • watch: event sent,received.
    • ref:
      • Info(3): reference mapping added,deleted.
      • Info(4): reference lookup and reconcile events queued.