* Create a new Logger instance with the specified scope * @param scope Scope name * @returns New Logger instance
(scope: string)
| 146 | * @returns New Logger instance |
| 147 | */ |
| 148 | scope(scope: string) { |
| 149 | const instance = new Logger(); |
| 150 | |
| 151 | if (this.#scope) { |
| 152 | instance.#scope = `${this.#scope}:${scope}`; |
| 153 | } else { |
| 154 | instance.#scope = scope; |
| 155 | } |
| 156 | |
| 157 | return instance; |
| 158 | } |
| 159 | |
| 160 | /** |
| 161 | * Track analytics events |
no outgoing calls
no test coverage detected