Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • O OS Core Lib Azure
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 9
    • Issues 9
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 7
    • Merge requests 7
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Open Subsurface Data Universe SoftwareOpen Subsurface Data Universe Software
  • Platform
  • System
  • Lib
  • cloud
  • azure
  • OS Core Lib Azure
  • Merge requests
  • !44

Add a common logger interface

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Kelly Domico requested to merge core-logger into master Nov 10, 2020
  • Overview 5
  • Commits 12
  • Pipelines 28
  • Changes 9

This MR adds the following:

  1. A common interface that supports collecting information to meet observability/monitoring requirements. This interface provides methods to log traces at various severity levels (i.e. info, warning, error), audit events and dependencies. The specific implementations of this interface have the freedom to choose how and where to store the logs.

  2. An implementation of the interface that logs to Application Insights using a Log4J2 appender and the SLF4J API. Traces are logged using the SLF4J-provided info, warn and error methods. Exceptions are automatically forwarded to the "exceptions" Application Insights table.

Example usage:

ICoreLogger logger = CoreLoggerProvider.getInstance().getLogger(SomeClass.class);
logger.info("Log this message");
Edited Nov 12, 2020 by Kelly Domico
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: core-logger