angular-toolbox 0.12.0 → 0.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,21 @@
1
+ /**
2
+ * @license
3
+ * Copyright Pascal ECHEMANN. All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be found in
6
+ * the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
7
+ */
8
+ import { LoggerConfig } from "./logger-config";
9
+ /**
10
+ * The default provider for the `LoggerService` configuration. You typically define
11
+ * the custom properties in the main NgModule declaration to initialize the logger:
12
+ *
13
+ * @NgModule({
14
+ * ...
15
+ * providers: [
16
+ * { provide: ATX_LOGGER_CONFIG, useValue: { dataConnector: new ConsoleLogConnector() } }
17
+ * ],
18
+ * ...
19
+ * });
20
+ */
21
+ export declare const ATX_LOGGER_CONFIG: LoggerConfig;
@@ -3,3 +3,5 @@ export * from "./log";
3
3
  export * from "./logger";
4
4
  export * from "./transactional-logger";
5
5
  export * from './log-level.enum';
6
+ export * from './logger-config';
7
+ export * from './atx-logger-config.provider';
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @license
3
+ * Copyright Pascal ECHEMANN. All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be found in
6
+ * the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
7
+ */
8
+ import { LogConnector } from "./log-connector";
9
+ /**
10
+ * Defines properties for the `LoggerService` configuration.
11
+ */
12
+ export interface LoggerConfig {
13
+ /**
14
+ * Defines the log connector of the `LoggerService` singleton.
15
+ */
16
+ logConnector?: LogConnector;
17
+ }
@@ -1,9 +1,14 @@
1
1
  import { AbstractLogger } from "../../../framework";
2
+ import { LoggerConfig } from "../../business";
2
3
  import * as i0 from "@angular/core";
3
4
  /**
4
5
  * A convenient high-level singleton that implements the `Logger` interface.
5
6
  */
6
7
  export declare class LoggerService extends AbstractLogger {
7
- static ɵfac: i0.ɵɵFactoryDeclaration<LoggerService, never>;
8
+ /**
9
+ * @private
10
+ */
11
+ constructor(config: LoggerConfig);
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<LoggerService, [{ optional: true; }]>;
8
13
  static ɵprov: i0.ɵɵInjectableDeclaration<LoggerService>;
9
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "angular-toolbox",
3
- "version": "0.12.0",
3
+ "version": "0.12.2",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^18.0.0",