Skip to content

Commit 3043f82

Browse files
feat: provide default value for enableLogging (#31)
1 parent 20cbc51 commit 3043f82

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

demos/app-angular/src/app/app.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { enableLogging } from '@amadeus-it-group/microfrontends';
1111
export const appConfig: ApplicationConfig = {
1212
providers: [
1313
provideAppInitializer(() => {
14-
enableLogging(true);
14+
enableLogging();
1515
}),
1616
provideZonelessChangeDetection(),
1717
provideRouter(routes, withHashLocation()),

packages/core/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ Simple logging can be enabled via `enableLogging()` method. It will log all mess
207207
```ts
208208
import { enableLogging } from '@amadeus-it-group/microfrontends';
209209

210-
enableLogging(true);
210+
enableLogging();
211211
```
212212

213213
### Information about the network

packages/core/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ let LOGGING_ENABLED = false;
1313
* If true, tracing information to help debugging will be logged in the console
1414
* @param enabled
1515
*/
16-
export function enableLogging(enabled: boolean) {
16+
export function enableLogging(enabled = true) {
1717
LOGGING_ENABLED = enabled;
1818
}
1919

0 commit comments

Comments
 (0)