Skip to content

Commit a9fc675

Browse files
committed
MLJS-22 Rename SDK log domain from "custom" to "sdk"
"custom" was a confusing label for entries written via log.debug/info/ warn/error — it's the only signal distinguishing SDK-origin log entries from native iOS logs now that platform is "ios" for both.
1 parent 379b4bf commit a9fc675

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mobilelocker/javascript-sdk",
3-
"version": "1.1.2",
3+
"version": "1.1.3",
44
"description": "Official JavaScript SDK for building interactive presentations and custom features on the Mobile Locker platform.",
55
"main": "dist/index.js",
66
"module": "dist/index.esm.js",

src/domains/log.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@ export type SDKLogDomain = 'analytics' | 'congresses' | 'contacts' | 'crm'
77
| 'data' | 'database' | 'device' | 'log'
88
| 'presentation' | 'scanner' | 'search' | 'session'
99
| 'share' | 'storage' | 'ui' | 'user'
10-
| 'custom'
10+
| 'sdk'
1111

1212
export interface SDKLogEntry {
1313
id: number
1414
/** ISO 8601 timestamp of when the entry was written. */
1515
timestamp: string
1616
level: SDKLogLevel
1717
domain: SDKLogDomain
18-
/** Full function name that wrote the entry, or `null` for custom entries. */
18+
/** Full function name that wrote the entry, or `null` for sdk entries. */
1919
function: string | null
2020
message: string
21-
/** How long the operation took in milliseconds, or `null` for custom entries. */
21+
/** How long the operation took in milliseconds, or `null` for sdk entries. */
2222
durationMs: number | null
23-
/** Number of retries before success, or `null` for custom entries. */
23+
/** Number of retries before success, or `null` for sdk entries. */
2424
retryCount: number | null
2525
/** Arbitrary key/value metadata attached to the entry. */
2626
metadata: Record<string, unknown> | null
@@ -65,7 +65,7 @@ function _writeLog(level: SDKLogLevel, message: string, metadata?: Record<string
6565
id: ++_localLogId,
6666
timestamp: new Date().toISOString(),
6767
level,
68-
domain: 'custom',
68+
domain: 'sdk',
6969
function: null,
7070
message,
7171
durationMs: null,

0 commit comments

Comments
 (0)