{
  "code": null,
  "collection": "architecture",
  "href": "https://banes-lab.com/ontology#architecture-centralized-logging",
  "id": "centralized-logging",
  "kind": "pattern",
  "layer": {
    "href": "https://banes-lab.com/ontology/schema#layer-execution-core",
    "json": "https://banes-lab.com/json/records/layer/execution-core",
    "label": "Execution Core",
    "markdown": "https://banes-lab.com/records/layer/execution-core.md",
    "ref": "layer:execution-core"
  },
  "name": "Centralized Logging",
  "ref": "architecture:centralized-logging",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-log-aggregation",
          "json": "https://banes-lab.com/json/records/lexicon/log-aggregation",
          "label": "Log Aggregation",
          "markdown": "https://banes-lab.com/records/lexicon/log-aggregation.md",
          "ref": "lexicon:log-aggregation"
        }
      ],
      "relation": "requires"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology#architecture-observability",
          "json": "https://banes-lab.com/json/records/architecture/observability",
          "label": "Observability",
          "markdown": "https://banes-lab.com/records/architecture/observability.md",
          "ref": "architecture:observability"
        },
        {
          "href": "https://banes-lab.com/ontology#architecture-auditability",
          "json": "https://banes-lab.com/json/records/architecture/auditability",
          "label": "Auditability",
          "markdown": "https://banes-lab.com/records/architecture/auditability.md",
          "ref": "architecture:auditability"
        }
      ],
      "relation": "reinforces"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-cross-service-analysis",
          "json": "https://banes-lab.com/json/records/lexicon/cross-service-analysis",
          "label": "Cross-Service Analysis",
          "markdown": "https://banes-lab.com/records/lexicon/cross-service-analysis.md",
          "ref": "lexicon:cross-service-analysis"
        }
      ],
      "relation": "enables"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-local-only-logs",
          "json": "https://banes-lab.com/json/records/lexicon/local-only-logs",
          "label": "Local-Only Logs",
          "markdown": "https://banes-lab.com/records/lexicon/local-only-logs.md",
          "ref": "lexicon:local-only-logs"
        }
      ],
      "relation": "conflicts-with"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-cost-personal-data-exposure",
          "json": "https://banes-lab.com/json/records/lexicon/cost-personal-data-exposure",
          "label": "Cost/Personal Data Exposure",
          "markdown": "https://banes-lab.com/records/lexicon/cost-personal-data-exposure.md",
          "ref": "lexicon:cost-personal-data-exposure"
        }
      ],
      "relation": "tensions-with"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/schema#tension-centralized-logging-cost-personal-data-exposure",
          "json": "https://banes-lab.com/json/records/tension/centralized-logging-cost-personal-data-exposure",
          "label": "Centralized Logging / Cost/Personal Data Exposure",
          "markdown": "https://banes-lab.com/records/tension/centralized-logging-cost-personal-data-exposure.md",
          "ref": "tension:centralized-logging-cost-personal-data-exposure"
        }
      ],
      "relation": "tensions"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-local-only-logs",
          "json": "https://banes-lab.com/json/records/lexicon/local-only-logs",
          "label": "Local-Only Logs",
          "markdown": "https://banes-lab.com/records/lexicon/local-only-logs.md",
          "ref": "lexicon:local-only-logs"
        }
      ],
      "relation": "violated-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-log-aggregation",
          "json": "https://banes-lab.com/json/records/lexicon/log-aggregation",
          "label": "Log Aggregation",
          "markdown": "https://banes-lab.com/records/lexicon/log-aggregation.md",
          "ref": "lexicon:log-aggregation"
        },
        {
          "href": "https://banes-lab.com/ontology#architecture-canonical-data-model",
          "json": "https://banes-lab.com/json/records/architecture/canonical-data-model",
          "label": "Canonical Data Model",
          "markdown": "https://banes-lab.com/records/architecture/canonical-data-model.md",
          "ref": "architecture:canonical-data-model"
        }
      ],
      "relation": "refactored-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/schema#vocabulary-severity-recommended",
          "json": "https://banes-lab.com/json/records/vocabulary/severity-recommended",
          "label": "recommended",
          "markdown": "https://banes-lab.com/records/vocabulary/severity-recommended.md",
          "ref": "vocabulary:severity-recommended"
        }
      ],
      "relation": "severity"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology#architecture-category-control-coordination-centralization",
          "json": "https://banes-lab.com/json/records/architecture-category/control-coordination-centralization",
          "label": "Control / Coordination / Centralization",
          "markdown": "https://banes-lab.com/records/architecture-category/control-coordination-centralization.md",
          "ref": "architecture-category:control-coordination-centralization"
        }
      ],
      "relation": "category"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology#architecture-category-observability-auditability-traceability",
          "json": "https://banes-lab.com/json/ontology/principles/architecture-category-observability-auditability-traceability",
          "label": "Observability / Auditability / Traceability",
          "markdown": "https://banes-lab.com/ontology/principles/architecture-category-observability-auditability-traceability.md",
          "ref": "chapter:/ontology#architecture-category-observability-auditability-traceability"
        },
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-category-control-coordination-centralization",
          "json": "https://banes-lab.com/json/ontology/lexicon/lexicon-category-control-coordination-centralization",
          "label": "Control / Coordination / Centralization",
          "markdown": "https://banes-lab.com/ontology/lexicon/lexicon-category-control-coordination-centralization.md",
          "ref": "chapter:/ontology/lexicon#lexicon-category-control-coordination-centralization"
        },
        {
          "href": "https://banes-lab.com/ontology/schema#the-vocabulary-severity",
          "json": "https://banes-lab.com/json/ontology/schema/the-vocabulary-severity",
          "label": "Severity levels",
          "markdown": "https://banes-lab.com/ontology/schema/the-vocabulary-severity.md",
          "ref": "chapter:/ontology/schema#the-vocabulary-severity"
        },
        {
          "href": "https://banes-lab.com/ontology/schema#the-resolutions",
          "json": "https://banes-lab.com/json/ontology/schema/the-resolutions",
          "label": "The resolutions",
          "markdown": "https://banes-lab.com/ontology/schema/the-resolutions.md",
          "ref": "chapter:/ontology/schema#the-resolutions"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "summary": "A design pattern that ships structured logs from every instance to one aggregated store.",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/ontology#architecture-decentralization",
      "json": "https://banes-lab.com/json/records/architecture/decentralization",
      "label": "Decentralization",
      "markdown": "https://banes-lab.com/records/architecture/decentralization.md",
      "ref": "architecture:decentralization"
    },
    "previous": {
      "href": "https://banes-lab.com/ontology#architecture-centralized-authentication",
      "json": "https://banes-lab.com/json/records/architecture/centralized-authentication",
      "label": "Centralized Authentication",
      "markdown": "https://banes-lab.com/records/architecture/centralized-authentication.md",
      "ref": "architecture:centralized-authentication"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/records/architecture",
    "label": "Architecture principles",
    "markdown": "https://banes-lab.com/api/records/architecture.md",
    "ref": "api:records/architecture"
  },
  "aliases": [],
  "exemplar": {
    "after": "const sink = new CentralLogSink();\nfooService.useLogger(structuredLogger(sink));\nbarService.useLogger(structuredLogger(sink));\nbazService.useLogger(structuredLogger(sink));",
    "before": "fooService.writeLocalLog(event);\nbarService.writeLocalLog(event);\nbazService.writeLocalLog(event);",
    "lang": "ts",
    "medium": "code"
  },
  "formedBy": null,
  "scope": [
    "services",
    "platform"
  ],
  "severity": "recommended"
}
