Skip to content

added custom log class SequenceLog #320

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 22, 2025
Merged

Conversation

andygruening
Copy link
Contributor

@andygruening andygruening commented Jul 16, 2025

Let's improve logging by adding a custom log class called SequenceLog which defines the following functions: Info, Error, Warning, Exception.

To enable logs from the SDK, devs to add SEQUENCE_DEBUG to their scripting defines in their player settings. Otherwise, no logs are ever shown to developers.

Reason is to remove the overhead on developers in the console when they don't need it. And - add more context to the existing logs. For example, adding the response json from http requests. This gives us more context when we debug issues from partners, but, it's only visible when needed.

Version Increment

Please ensure you have incremented the package version in the package.json as necessary.

  • I have incremented the package.json according to semantic versioning
  • No version increment is needed; the change does not impact SDK or Sample code/assets

Docs Checklist

Please ensure you have addressed documentation updates if needed as part of this PR:

  • I have created a separate PR on the sequence docs repository for documentation updates: Link to docs PR
  • No documentation update is needed for this change.

@andygruening andygruening requested review from a team as code owners July 16, 2025 20:44
Copy link

cloudflare-workers-and-pages bot commented Jul 16, 2025

Deploying sequence-unity with  Cloudflare Pages  Cloudflare Pages

Latest commit: 167e669
Status: ✅  Deploy successful!
Preview URL: https://c8487b87.sequence-unity.pages.dev
Branch Preview URL: https://feature-log-wrapper.sequence-unity.pages.dev

View logs

@andygruening
Copy link
Contributor Author

Custom log shows more request context if you added SEQUENCE_DEBUG as a scripting define
Screenshot 2025-07-16 at 22 42 38

@andygruening andygruening merged commit b258c55 into master Jul 22, 2025
2 checks passed
@andygruening andygruening deleted the Feature/log-wrapper branch July 22, 2025 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants