Skip to content

Commit

Permalink
docs: update custom logger documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
timdeschryver committed Oct 19, 2024
1 parent a426f38 commit 135bdbf
Showing 1 changed file with 22 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,28 @@ export class MyLoggerService implements AbstractLoggerService {
}
```

Then provide the class in the module:
## Usage

### Standalone

Include the logger class within the `ApplicationConfig`:

```ts
export const appConfig: ApplicationConfig = {
providers: [
provideAuth({
config: {
// ...
},
}),
{ provide: AbstractLoggerService, useClass: MyLoggerService },
],
};
```

### NgModule

Provide the logger class in the module:

```ts
@NgModule({
Expand Down

0 comments on commit 135bdbf

Please sign in to comment.