Skip to content

Commit

Permalink
Change the type of LogContext
Browse files Browse the repository at this point in the history
We don’t actually emit any context at the moment, I believe, nor do we
tell users what they’re meant to do with it. But, still, before our
first release of the public API, let’s use a type that the user can at
least easily pass through to a logging backend.

We still have #8 for figuring out what this context is actually meant to
be used for.
  • Loading branch information
lawrence-forooghian committed Dec 18, 2024
1 parent a182876 commit 9450de2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/AblyChat/Logging.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os

public typealias LogContext = [String: any Sendable]
public typealias LogContext = [String: JSONValue]

public protocol LogHandler: AnyObject, Sendable {
/**
Expand Down

0 comments on commit 9450de2

Please sign in to comment.