6989a98d75
- Arkitektur: docs/auth/passwordless-architecture.md - Backend: iom/quixzoom-auth-service/ (FastAPI + Redis) - Webb: quixzoom-market-pages/se/login/ (QR-kod + polling) - App: iom/quixzoom-app/src/features/auth/ (push + deep links) Flöde: QR-kod → app-godkännande → webb-inloggad
22 lines
791 B
JavaScript
22 lines
791 B
JavaScript
/**
|
|
* Compatibility matrix
|
|
*
|
|
| Library | log | info | warn | error | \<interpolation\> |
|
|
|----------|:------|:-------|:------|:--------|:------------------|
|
|
| console | ✅ | ✅ | ✅ | ✅ | ✅ (%s %o %O) |
|
|
| bunyan | ❌ | ✅ | ✅ | ✅ | ✅ (%s %o %O) |
|
|
| pino | ❌ | ✅ | ✅ | ✅ | ✅ (%s %o %O) |
|
|
| winston | ❌ | ✅ | ✅ | ✅ | ✅ (%s %o %O)^1 |
|
|
| log4js | ❌ | ✅ | ✅ | ✅ | ✅ (%s %o %O) |
|
|
*
|
|
* ^1: https://github.com/winstonjs/winston#string-interpolation
|
|
*/
|
|
const noopLogger = {
|
|
info: () => { },
|
|
warn: () => { },
|
|
error: () => { },
|
|
};
|
|
export function getLogger(options) {
|
|
return options.logger || noopLogger;
|
|
}
|