mirror of
https://github.com/bitwarden/clients.git
synced 2026-11-16 07:03:29 +00:00
* [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
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.