Files
app__bitwarden-clients/libs/logging-angular
Daniel García 64ba928352 [PM-39409] feat: Forward TS logs to Flight Recorder buffer (#22613)
* [PM-39409] feat: Forward TS logs to Flight Recorder buffer

* [PM-39409] fix: map log levels to SDK levels at call time

`libs/common`'s enum barrel re-exports `@bitwarden/logging`, so reading the SDK
`LogLevel` during module evaluation crashed any spec stubbing
`@bitwarden/sdk-internal` with a partial mock.

* remove unneeded test
2026-09-04 11:48:26 +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.