@webex/plugin-logger 3.12.0-webex-services-ready.4 → 3.13.0-next.1

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,334 @@
1
+ {
2
+ "manifest_version": 1,
3
+ "repository": {
4
+ "name": "@webex/plugin-logger",
5
+ "purpose": "Logger plugin for the Cisco Webex JS SDK. It replaces the minimal webex-core logger with leveled console output, redaction of authorization keys, email addresses, and MTID values, and in-memory log buffers that internal-plugin-support formats and uploads.",
6
+ "category": "cat2-legacy",
7
+ "primary_languages": [
8
+ "javascript"
9
+ ]
10
+ },
11
+ "topology": "Single-repo",
12
+ "commands": {
13
+ "install": {
14
+ "command": "yarn install",
15
+ "source_file": "package.json",
16
+ "role": "install"
17
+ },
18
+ "compile": {
19
+ "command": "yarn workspace @webex/plugin-logger build:src",
20
+ "source_file": "package.json",
21
+ "role": "compile"
22
+ },
23
+ "build": {
24
+ "command": "yarn workspace @webex/plugin-logger build",
25
+ "source_file": "package.json",
26
+ "role": "package"
27
+ },
28
+ "unit-test": {
29
+ "command": "yarn workspace @webex/plugin-logger test:unit",
30
+ "source_file": "package.json",
31
+ "role": "unit-test"
32
+ },
33
+ "browser-test": {
34
+ "command": "yarn workspace @webex/plugin-logger test:browser",
35
+ "source_file": "package.json",
36
+ "role": "other"
37
+ },
38
+ "lint": {
39
+ "command": "yarn workspace @webex/plugin-logger test:style",
40
+ "source_file": "package.json",
41
+ "role": "lint"
42
+ },
43
+ "deploy": {
44
+ "command": "yarn workspace @webex/plugin-logger deploy:npm",
45
+ "source_file": "package.json",
46
+ "role": "deploy"
47
+ }
48
+ },
49
+ "toolchain": [
50
+ {
51
+ "name": "node",
52
+ "version": ">=18",
53
+ "origin": "repo-config",
54
+ "source_file": "package.json"
55
+ },
56
+ {
57
+ "name": "babel",
58
+ "version": "^7.17.10",
59
+ "origin": "repo-config",
60
+ "source_file": "package.json"
61
+ },
62
+ {
63
+ "name": "eslint",
64
+ "version": "^8.24.0",
65
+ "origin": "repo-config",
66
+ "source_file": "package.json"
67
+ },
68
+ {
69
+ "name": "prettier",
70
+ "version": "^2.7.1",
71
+ "origin": "repo-config",
72
+ "source_file": "package.json"
73
+ }
74
+ ],
75
+ "tests": {
76
+ "unit": {
77
+ "command_ref": "unit-test",
78
+ "dir": "test/unit/spec",
79
+ "framework": "jest"
80
+ }
81
+ },
82
+ "quality_gates": {
83
+ "code_coverage": {
84
+ "origin": "none",
85
+ "declared_by": "akulakum@cisco.com via bootstrap questionnaire (delegated check: jest.config.js re-exports @webex/jest-config-legacy, which sets collectCoverage false and no coverageThreshold; package.json defines no coverage script)"
86
+ }
87
+ },
88
+ "coverage_status_definitions": {
89
+ "specced": ">=80% public surface specced, drift <5% - spec is authoritative",
90
+ "partial": "40-80% specced - spec is a hint, cross-check code",
91
+ "untracked": "<40% specced - code is the source of truth"
92
+ },
93
+ "spec_source_policy": {
94
+ "mode": "keep-separate",
95
+ "migrated_source_disposition": "retain",
96
+ "disposition_decided_by": "akulakum@cisco.com",
97
+ "disposition_decided_at": "2026-10-06T09:40:00Z",
98
+ "decided_by": "akulakum@cisco.com",
99
+ "decided_at": "2026-10-06T09:40:00Z",
100
+ "decision_record": "docs/adr/0001-retain-product-readme.md"
101
+ },
102
+ "spec_sources": [],
103
+ "modules": [
104
+ {
105
+ "path": "src",
106
+ "canonical_spec": "src/docs/README.md",
107
+ "coverage_status": "Partial",
108
+ "coverage_evidence": "Field coverage 93.8% (15/16) assessed 2026-10-06 by the generator; critical field coverage 8/8. The one WEAK field is test strategy: test/unit/spec/logger.js covers level resolution, buffering, formatting, cursors, and basic redaction, but registration (MOD-001), the non-throwing catch branch (MOD-014), group indentation, and the repeated-string and uppercase AUTHORIZATION redaction gaps have no test. Held at Partial: independent validation has not run and no spec-drift record exists yet.",
109
+ "last_assessed": "2026-10-06",
110
+ "contracts": {
111
+ "provides": [
112
+ "plugin-logger-sdk",
113
+ "log-buffer-format"
114
+ ],
115
+ "requires": [
116
+ "webex-core-plugin-host",
117
+ "webex-common-js-api",
118
+ "lodash"
119
+ ]
120
+ },
121
+ "section_profile": {
122
+ "has_tiers": false,
123
+ "has_ui": false,
124
+ "crosses_service_boundaries": false,
125
+ "holds_client_state": true,
126
+ "enforces_domain_rules": true,
127
+ "is_concurrent_async": false,
128
+ "owns_persistence": false,
129
+ "stateful_transitions": false,
130
+ "exposes_wire_protocol": true,
131
+ "ui_multi_screen": false,
132
+ "large_data_model": false,
133
+ "returns_caller_errors": false,
134
+ "module_specific_conventions": true,
135
+ "published_package": true,
136
+ "embedded_in_host": false,
137
+ "has_design_tradeoff": true,
138
+ "resolved_by": "claude-cowork (code evidence; bootstrap questionnaire)",
139
+ "resolved_at": "2026-10-06T09:40:00Z",
140
+ "has_submodules": false,
141
+ "has_submodules_computed_by": "scripts/module_tree.py",
142
+ "has_submodules_computed_at": "2026-10-06T09:40:00Z"
143
+ }
144
+ }
145
+ ],
146
+ "contract_catalog": {
147
+ "index_path": "docs/architecture.md",
148
+ "definitions": {
149
+ "plugin-logger-sdk": {
150
+ "kind": "sdk",
151
+ "publication": "published",
152
+ "source_kind": "repository-path",
153
+ "source": "package.json",
154
+ "summary": "Published npm package. main is dist/index.js and devMain is src/index.js. Importing the package registers Logger as the webex 'logger' plugin with replace: true and merges src/config.js into webex config. The barrel exports the Logger constructor as default and the named levels array."
155
+ },
156
+ "log-buffer-format": {
157
+ "kind": "file",
158
+ "publication": "internal",
159
+ "source_kind": "repository-path",
160
+ "source": "src/logger.js",
161
+ "summary": "In-memory buffer entries and the newline-joined string returned by formatLogs(). Each entry is an array of group indent, ISO-8601 timestamp, client name, then stringified arguments. formatLogs() joins entries with newlines, so Array#toString joins fields with commas. Consumed by @webex/internal-plugin-support for log upload."
162
+ },
163
+ "webex-core-plugin-host": {
164
+ "kind": "rpc",
165
+ "publication": "internal",
166
+ "source_kind": "external",
167
+ "source": "@webex/webex-core (WebexPlugin, registerPlugin, webex.internal.device.features.developer)",
168
+ "summary": "Host plugin contract consumed by this module. WebexPlugin.extend supplies config, session state, and the webex reference. registerPlugin with replace: true overwrites the fallback logger registered by webex-core src/plugins/logger.js. The developer feature toggle 'log-level' is read through webex.internal.device when present."
169
+ },
170
+ "webex-common-js-api": {
171
+ "kind": "sdk",
172
+ "publication": "published",
173
+ "source_kind": "external",
174
+ "source": "@webex/common (packages/@webex/common/src/docs/README.md)",
175
+ "summary": "Consumed exports inBrowser and patterns (containsEmails, containsMTID). Owned and specified by @webex/common."
176
+ },
177
+ "lodash": {
178
+ "kind": "sdk",
179
+ "publication": "published",
180
+ "source_kind": "external",
181
+ "source": "lodash@^4.17.21 (npm)",
182
+ "summary": "Runtime dependency. src/logger.js imports cloneDeep, has, isArray, isObject, and isString."
183
+ }
184
+ }
185
+ },
186
+ "spec_policy": {
187
+ "require_what_and_why": true,
188
+ "require_provenance": true,
189
+ "protected_specs": [
190
+ "src/docs/README.md"
191
+ ]
192
+ },
193
+ "validation": {
194
+ "generator_runtime": "claude-cowork",
195
+ "generator_model": "claude-opus-5-5",
196
+ "generator_runtime_source": "host-metadata",
197
+ "generator_run_id": "spark-853115-sdd-stage0-2026-10-06",
198
+ "minimum_independence": "different-runtime",
199
+ "validator_runtime": "current-session",
200
+ "validator_runtime_source": "invocation-input",
201
+ "validator_run_id": "spec-validator-plugin-logger-2026-10-08-r4",
202
+ "runtime_fallback_tier": "different-runtime",
203
+ "blocking_severities": [
204
+ "Blocking"
205
+ ],
206
+ "source_commit": "86bc3fc323b312404bcd2f53a0cd8d55ffb2bdaf",
207
+ "base_ref": "next",
208
+ "head_ref": "SDD_WEBEX_PLUGIN_LOGGER"
209
+ },
210
+ "layout": {
211
+ "sdd_root": ".sdd",
212
+ "docs_root": "docs",
213
+ "agent_entry_path": "AGENTS.md",
214
+ "standing_docs_root": "docs",
215
+ "spec_index_path": "docs/specs/README.md",
216
+ "module_docs_strategy": "source-local",
217
+ "module_docs_relative_path": "docs/README.md",
218
+ "module_docs_decision": {
219
+ "basis": "repo-standards-default",
220
+ "reason": "Single module rooted at src/ with no existing module-local docs folder. The default source-local route src/docs/README.md is unambiguous. test:style runs eslint ./src/**/*.* and build:src processes -js -ts only, so Markdown under src/docs/ does not enter the lint or build output.",
221
+ "decided_by": "akulakum@cisco.com (bootstrap questionnaire)",
222
+ "decided_at": "2026-10-06T09:40:00Z"
223
+ },
224
+ "repo_context_decision": {
225
+ "path": ".repo-context.json",
226
+ "schema_path": "schemas/repo-context.schema.json",
227
+ "action": "create",
228
+ "schema_action": "create",
229
+ "reason": "Neither the operational context nor its schema existed in this package. Both are created from the Repo Standards 0.3.0 schema and package evidence.",
230
+ "decided_by": "akulakum@cisco.com (bootstrap questionnaire)",
231
+ "decided_at": "2026-10-06T09:40:00Z"
232
+ },
233
+ "artifact_decisions": [
234
+ {
235
+ "path": "docs/service.md",
236
+ "action": "omit",
237
+ "reason": "Library package, not a deployable service. package.json has no start script, container, or deployment descriptor.",
238
+ "decided_by": "claude-cowork (code evidence)",
239
+ "decided_at": "2026-10-06T09:40:00Z"
240
+ },
241
+ {
242
+ "path": "mkdocs.yml",
243
+ "action": "omit",
244
+ "reason": "No package-level documentation site exists. Documentation publishing stays with the workspace.",
245
+ "decided_by": "akulakum@cisco.com (bootstrap questionnaire)",
246
+ "decided_at": "2026-10-06T09:40:00Z"
247
+ },
248
+ {
249
+ "path": "api-specs/openapi.yaml",
250
+ "action": "omit",
251
+ "reason": "The package serves no HTTP routes. Its published surface is the npm export described by plugin-logger-sdk.",
252
+ "decided_by": "claude-cowork (code evidence)",
253
+ "decided_at": "2026-10-06T09:40:00Z"
254
+ },
255
+ {
256
+ "path": "SECURITY.md",
257
+ "action": "omit",
258
+ "reason": "No package-level security policy exists. A per-package copy would duplicate workspace governance.",
259
+ "decided_by": "akulakum@cisco.com (bootstrap questionnaire)",
260
+ "decided_at": "2026-10-06T09:40:00Z"
261
+ },
262
+ {
263
+ "path": "CONTRIBUTING.md",
264
+ "action": "omit",
265
+ "reason": "Contribution instructions are owned at the workspace root and linked from this package README.md.",
266
+ "decided_by": "akulakum@cisco.com (bootstrap questionnaire)",
267
+ "decided_at": "2026-10-06T09:40:00Z"
268
+ },
269
+ {
270
+ "path": "CHANGELOG.md",
271
+ "action": "omit",
272
+ "reason": "Changelog generation is owned at the workspace root. This package has no changelog file.",
273
+ "decided_by": "akulakum@cisco.com (bootstrap questionnaire)",
274
+ "decided_at": "2026-10-06T09:40:00Z"
275
+ },
276
+ {
277
+ "path": "CTO_CHECKLIST.yml",
278
+ "action": "omit",
279
+ "reason": "The CTO readiness checklist applies to deployable services. This package is a library.",
280
+ "decided_by": "claude-cowork (code evidence)",
281
+ "decided_at": "2026-10-06T09:40:00Z"
282
+ },
283
+ {
284
+ "path": "schemas/cto-checklist.schema.json",
285
+ "action": "omit",
286
+ "reason": "Omitted together with CTO_CHECKLIST.yml.",
287
+ "decided_by": "claude-cowork (code evidence)",
288
+ "decided_at": "2026-10-06T09:40:00Z"
289
+ }
290
+ ],
291
+ "template_roots": {
292
+ "canonical": ".sdd/templates/repo-standards"
293
+ },
294
+ "repo_skills_root": ".sdd/skills",
295
+ "contract_index_path": "docs/architecture.md"
296
+ },
297
+ "coverage_ratchet": {
298
+ "enabled": true,
299
+ "waivers": []
300
+ },
301
+ "substrate": {
302
+ "source": "WebexTools/repo-standards@d89a7fe59126ae3ad9bac9ca352aa7f12b4c85dc",
303
+ "consumed": [
304
+ "@webex/eslint-config-legacy via .eslintrc.js",
305
+ "@webex/babel-config-legacy via babel.config.js",
306
+ "@webex/jest-config-legacy via jest.config.js",
307
+ "@webex/legacy-tools build and test runner via package.json",
308
+ "package README.md",
309
+ "Repo Standards 0.3.0 templates at the JS SDK root .sdd/templates/repo-standards, reached through the package symlink .sdd/templates/repo-standards"
310
+ ],
311
+ "compliance_tier": "baseline"
312
+ },
313
+ "section_profiles": {
314
+ "repo": {
315
+ "owns_datastore": false,
316
+ "holds_client_state": true,
317
+ "components_interact": true,
318
+ "domain_data_across_components": false,
319
+ "caches_data": false,
320
+ "observability_convention": true,
321
+ "deploys_to_infra": false,
322
+ "shared_base_libs": true,
323
+ "is_monorepo": false,
324
+ "multi_platform": true,
325
+ "published_package": true,
326
+ "embedded_in_host": false,
327
+ "cross_repo_deps_material": true,
328
+ "security_arch_warranted": true,
329
+ "exposes_commands_or_artifacts": true
330
+ },
331
+ "resolved_by": "claude-cowork (code evidence; bootstrap questionnaire)",
332
+ "resolved_at": "2026-10-06T09:40:00Z"
333
+ }
334
+ }
package/AGENTS.md ADDED
@@ -0,0 +1,175 @@
1
+ <!-- sdd-generated-metadata
2
+ doc_kind: agent-entry
3
+ generated_from: agents@0.3.0
4
+ generated_by: claude-cowork
5
+ approved_by: akulakum@cisco.com
6
+ updated_at: 2026-10-08T08:51:39Z
7
+ validation_status: pass-with-warnings
8
+ -->
9
+
10
+ # AI Agent Instructions
11
+
12
+ Package-scoped SDD entry for `@webex/plugin-logger`. This file orients agents. The monorepo root `AGENTS.md` governs workspace-wide setup.
13
+
14
+ ## Working Method
15
+
16
+ - Read the relevant package files before editing. Do not edit blind.
17
+ - Understand the task and affected surfaces before writing code.
18
+ - Prefer focused edits over rewriting whole files.
19
+ - Do not invent commands, paths, exports, config keys, or log formats. Verify them from this package's source and tests.
20
+ - Test or validate before declaring done.
21
+ - Keep output concise. If something is uncertain, say so instead of guessing.
22
+
23
+ ## Canonical Repository Documentation
24
+
25
+ Before changing code or documentation, start with:
26
+
27
+ - [`docs/index.md`](docs/index.md) for package documentation navigation;
28
+ - [`docs/architecture.md`](docs/architecture.md) for package boundaries and interactions;
29
+ - [`docs/specs/README.md`](docs/specs/README.md) for the manifest-backed module and contract registry;
30
+ - the module specification at [`src/docs/README.md`](src/docs/README.md); and
31
+ - [`docs/adr/index.md`](docs/adr/index.md) plus applicable concrete ADRs.
32
+
33
+ Follow `.sdd/manifest.json` for each contract's publication state and canonical source. This package publishes an SDK surface, so its contract artifact is `package.json` plus the `src/index.js` barrel. No OpenAPI applies.
34
+
35
+ ## 1. Commands (Run First)
36
+
37
+ Use only documented commands. Do not invent alternatives when a command is missing. Run workspace commands from the monorepo root.
38
+
39
+ | Task | Command |
40
+ | ---------------------- | ------- |
41
+ | Install dependencies | `yarn install` (workspace root) |
42
+ | Start dev environment | N/A — library package with no start script |
43
+ | Run tests | `yarn workspace @webex/plugin-logger test:unit` (jest); `yarn workspace @webex/plugin-logger test:browser` (karma) |
44
+ | Run linters | `yarn workspace @webex/plugin-logger test:style` |
45
+ | Build/release artifact | `yarn workspace @webex/plugin-logger build` (runs `build:src`) |
46
+ | Format code | N/A — no format script; `prettier` is a devDependency used through eslint |
47
+
48
+ `package.json` `scripts.test` chains `test:style`, `test:unit`, `test:integration`, and `test:browser`. `test:integration` is not defined, so that aggregate script is not a verification command.
49
+
50
+ If a required command is unknown, stop and ask for the exact command.
51
+
52
+ ## 2. Agent Persona and Scope
53
+
54
+ You are the Webex web SDK engineering assistant for `@webex/plugin-logger`.
55
+
56
+ Primary outcomes:
57
+
58
+ - Deliver production-safe changes with unit tests and lint passing.
59
+ - Preserve existing behavior unless a change request explicitly requires a behavior change.
60
+ - Keep docs and configuration aligned with code changes.
61
+
62
+ Definition of done:
63
+
64
+ 1. Requested change is implemented.
65
+ 2. Relevant tests, lint, and build checks pass locally.
66
+ 3. Updated docs cover new behavior, including [`src/docs/README.md`](src/docs/README.md).
67
+ 4. PR summary includes risks and rollback notes.
68
+
69
+ ## 3. Repository Knowledge
70
+
71
+ ### Tech Stack
72
+
73
+ | Area | Tooling | Version |
74
+ | ---------------- | ------- | ------- |
75
+ | Language runtime | node | `>=18` (`package.json` engines) |
76
+ | Build tool | `@webex/legacy-tools` over babel | `@babel/core` `^7.17.10` |
77
+ | Test framework | jest via `@webex/jest-config-legacy`; karma via `test:browser`; chai, sinon, and `@webex/test-helper-mock-webex` | sinon `^9.2.4` |
78
+ | Lint/format | eslint via `@webex/eslint-config-legacy`, prettier | eslint `^8.24.0`, prettier `^2.7.1` |
79
+
80
+ ### Project Map
81
+
82
+ - `src/index.js`: registers the plugin with `replace: true` and re-exports `default` and `levels`.
83
+ - `src/logger.js`: the `Logger` plugin, level methods, redaction, buffers, and `formatLogs`.
84
+ - `src/config.js`: default `logger.level` and `logger.historyLength`.
85
+ - `src/docs/README.md`: the canonical module specification.
86
+ - `test/unit/spec/logger.js`: the unit spec.
87
+ - `dist/`: generated build output. Never edit by hand.
88
+ - `docs/`: package standing documentation.
89
+ - `README.md`: retained product readme. It is not the behavioral authority.
90
+
91
+ ### Critical Constraints
92
+
93
+ - Everything printed or buffered must pass through `Logger#filter` first. Do not add an output path that skips it.
94
+ - `formatLogs`, `updateLastSubmittedIndex`, and `resetBufferToLastSuccessfulUpload` are used by `@webex/internal-plugin-support` for log upload.
95
+ - The buffer entry layout `[indent, isoTimestamp, name, ...values]` is read by `formatLogs` and by the unit spec.
96
+ - `replace: true` in `src/index.js` is required to override the fallback logger in `@webex/webex-core`.
97
+ - Log methods must not throw to callers.
98
+
99
+ ## 4. Testing Workflow
100
+
101
+ Run checks in this order:
102
+
103
+ 1. `yarn workspace @webex/plugin-logger test:unit`
104
+ 2. `yarn workspace @webex/plugin-logger test:style`
105
+ 3. `yarn workspace @webex/plugin-logger test:browser` when a karma browser is available. No integration tier is defined.
106
+
107
+ The browser run is recorded in `.sdd/manifest.json` as `commands.browser-test` (role `other`), not under `tests`, because the SDD manifest `tests` schema has no browser tier.
108
+
109
+ Testing rules:
110
+
111
+ - Add or update unit cases for every behavior change.
112
+ - Cover failure paths and edge cases, not only happy paths.
113
+ - Do not remove tests to make CI pass.
114
+ - Several cases are `nodeOnly` or `browserOnly`. Check which runner executes a case before relying on it.
115
+
116
+ ## 5. Code Style and Patterns
117
+
118
+ Coding expectations:
119
+
120
+ - Follow repository style rules and static analysis output. The local `.eslintrc.js` sets `root: true`.
121
+ - Prefer small functions over large procedural blocks.
122
+ - Add log levels through `levels` and `makeLoggerMethod` so the `client_` twin is generated.
123
+ - Keep public interfaces stable unless a breaking change is requested.
124
+ - Before adding a config key, check the keys already read in `src/logger.js`.
125
+
126
+ Pattern example:
127
+
128
+ ```text
129
+ Preferred:
130
+ - Read this.config inside the generated method on each call.
131
+ - Redact a deep clone so the caller's object is untouched.
132
+ - Add a unit case next to the matching describe block in test/unit/spec/logger.js.
133
+
134
+ Avoid:
135
+ - Calling console directly from new code in this package.
136
+ - Changing the position of the timestamp in a buffer entry.
137
+ - Treating README.md as the list of supported levels or config keys.
138
+ ```
139
+
140
+ ## 6. Git Workflow
141
+
142
+ - Branch naming: `[feature|fix|chore]/[short-description]`
143
+ - Commit format: conventional commits (`feat:`, `fix:`, `docs:`, `refactor:`, `test:`, `chore:`)
144
+ - Keep commits focused and reversible.
145
+ - Rebase on the target branch before opening a pull request.
146
+
147
+ PR checklist:
148
+
149
+ - What changed and why.
150
+ - Tests run and results.
151
+ - Risk and impact, including `@webex/internal-plugin-support` when buffer or format behavior changes.
152
+ - Rollback approach.
153
+
154
+ ## 7. Boundaries and Escalation
155
+
156
+ ### Always
157
+
158
+ - Prefer existing patterns over introducing new architecture.
159
+ - Keep changes minimal for the requested scope.
160
+ - Call out assumptions and unknowns explicitly.
161
+ - Update [`src/docs/README.md`](src/docs/README.md) in the same change that alters observable behavior.
162
+
163
+ ### Ask First
164
+
165
+ - Adding dependencies.
166
+ - Changing redaction rules, the buffer threshold default, or the default level.
167
+ - Changing the buffer entry layout or `formatLogs` output.
168
+ - Removing or renaming a level method, export, or config key.
169
+
170
+ ### Never
171
+
172
+ - Edit `dist/` by hand.
173
+ - Commit secrets, tokens, or credentials, including in test fixtures.
174
+ - Log raw arguments without redaction.
175
+ - Copy template bodies into this package or replace `.sdd/templates/repo-standards` with a real directory. It is a symlink to the repository-root `.sdd/templates/repo-standards` snapshot and must stay one.
package/dist/config.js CHANGED
@@ -13,12 +13,18 @@ exports.default = void 0;
13
13
  * @property {string} [level=process.env.WEBEX_LOG_LEVEL] - Maximum log level that
14
14
  * should be printed to the console. One of
15
15
  * silent|error|warn|log|info|debug|trace
16
- * @property {number} [historyLength=1000] - Maximum number of entries to store in the log buffer.
16
+ * @property {Object<string, string>} [consoleMethods] - Saved console method names, keyed by normal method name.
17
+ * Each value names a function on console. Buffered calls use that function with console as its receiver.
18
+ * Printed-only calls, missing keys and unavailable saved methods use the normal console method.
19
+ * @property {number} [historyLength=10000] - Maximum number of entries to store in the log buffer.
17
20
  * @example
18
- * {
21
+ * // Save the function before installing host console capture. The host chooses the saved name.
22
+ * console.stdinfo = console.info.bind(console);
23
+ * const config = {
19
24
  * level: process.env.WEBEX_LOG_LEVEL,
20
- * historyLength: 1000
21
- * }
25
+ * historyLength: 10000,
26
+ * consoleMethods: {info: 'stdinfo'}
27
+ * };
22
28
  */
23
29
  var _default = exports.default = {
24
30
  logger: {
@@ -1 +1 @@
1
- {"version":3,"names":["_default","exports","default","logger","level","process","env","WEBEX_LOG_LEVEL","historyLength"],"sources":["config.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\n/**\n * @typedef {Object} LoggerConfig\n * @property {string} [level=process.env.WEBEX_LOG_LEVEL] - Maximum log level that\n * should be printed to the console. One of\n * silent|error|warn|log|info|debug|trace\n * @property {number} [historyLength=1000] - Maximum number of entries to store in the log buffer.\n * @example\n * {\n * level: process.env.WEBEX_LOG_LEVEL,\n * historyLength: 1000\n * }\n */\n\nexport default {\n logger: {\n level: process.env.WEBEX_LOG_LEVEL,\n historyLength: 10000,\n },\n};\n"],"mappings":";;;;;;;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAXA,IAAAA,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAae;EACbC,MAAM,EAAE;IACNC,KAAK,EAAEC,OAAO,CAACC,GAAG,CAACC,eAAe;IAClCC,aAAa,EAAE;EACjB;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_default","exports","default","logger","level","process","env","WEBEX_LOG_LEVEL","historyLength"],"sources":["config.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\n/**\n * @typedef {Object} LoggerConfig\n * @property {string} [level=process.env.WEBEX_LOG_LEVEL] - Maximum log level that\n * should be printed to the console. One of\n * silent|error|warn|log|info|debug|trace\n * @property {Object<string, string>} [consoleMethods] - Saved console method names, keyed by normal method name.\n * Each value names a function on console. Buffered calls use that function with console as its receiver.\n * Printed-only calls, missing keys and unavailable saved methods use the normal console method.\n * @property {number} [historyLength=10000] - Maximum number of entries to store in the log buffer.\n * @example\n * // Save the function before installing host console capture. The host chooses the saved name.\n * console.stdinfo = console.info.bind(console);\n * const config = {\n * level: process.env.WEBEX_LOG_LEVEL,\n * historyLength: 10000,\n * consoleMethods: {info: 'stdinfo'}\n * };\n */\n\nexport default {\n logger: {\n level: process.env.WEBEX_LOG_LEVEL,\n historyLength: 10000,\n },\n};\n"],"mappings":";;;;;;;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAjBA,IAAAA,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAmBe;EACbC,MAAM,EAAE;IACNC,KAAK,EAAEC,OAAO,CAACC,GAAG,CAACC,eAAe;IAClCC,aAAa,EAAE;EACjB;AACF,CAAC","ignoreList":[]}