clients/libs/logging-angular
Daniel García dc888f9acc
[PM-33315] Create @bitwarden/logging (#20197)
* [PM-33315] Create @bitwarden/logging

* Reorder tsconfig, fix tests
2026-04-21 11:48:03 +02:00
..
src [PM-33315] Create @bitwarden/logging (#20197) 2026-04-21 11:48:03 +02:00
eslint.config.mjs [PM-33315] Create @bitwarden/logging (#20197) 2026-04-21 11:48:03 +02:00
jest.config.js [PM-33315] Create @bitwarden/logging (#20197) 2026-04-21 11:48:03 +02:00
package.json [PM-33315] Create @bitwarden/logging (#20197) 2026-04-21 11:48:03 +02:00
project.json [PM-33315] Create @bitwarden/logging (#20197) 2026-04-21 11:48:03 +02:00
README.md [PM-33315] Create @bitwarden/logging (#20197) 2026-04-21 11:48:03 +02:00
test.setup.ts [PM-33315] Create @bitwarden/logging (#20197) 2026-04-21 11:48:03 +02:00
tsconfig.eslint.json [PM-33315] Create @bitwarden/logging (#20197) 2026-04-21 11:48:03 +02:00
tsconfig.json [PM-33315] Create @bitwarden/logging (#20197) 2026-04-21 11:48:03 +02:00
tsconfig.lib.json [PM-33315] Create @bitwarden/logging (#20197) 2026-04-21 11:48:03 +02:00
tsconfig.spec.json [PM-33315] Create @bitwarden/logging (#20197) 2026-04-21 11:48:03 +02:00

logging-angular

Owned by: platform

Angular wrapper for @bitwarden/logging. Provides FlightRecorderService, an @Injectable subclass of FlightRecorder that wires SDK readiness automatically via SdkLoadService.Ready.

Usage

import { FlightRecorderService } from "@bitwarden/logging-angular";

@Component({
  /* ... */
})
export class MyComponent {
  private recorder = inject(FlightRecorderService);

  async viewEvents() {
    const events = await this.recorder.read();
  }
}

See @bitwarden/logging for the full API surface inherited by this service.