Klleon Chat SDK
English
English
  • ✨New Javascript SDK [1.2.0]
    • Getting Started
    • Events
    • UI
    • Methods
      • Life Cycle
      • Text Chat
      • Voice Chat
      • Echo Chat
      • Audio Echo Chat
      • Other
    • TypeScript Support
    • Examples
      • VanillaJS
      • React
      • Nextjs
    • Log System
    • Updates
  • JavaScript SDK [v0.x.x] (Planned for Deprecation)
    • Quick Start
    • Initialize
    • Avatar Streaming
      • Start Streaming
      • Stop Streaming
      • Control Streaming Screen
    • Set Chat Screen
    • Text Message
    • Voice Message
    • Echo - Repeat My Message
    • Event Subscription
    • Updates
  • Service Architecture
Powered by GitBook
LogoLogo

Products

  • Pricing

Websites

  • Homepage
  • Youtube
  • Linkedin

Copyright © Klleon. All rights reserved

On this page
  1. New Javascript SDK [1.2.0]

Log System

It is recommended to set log_level to silent during production deployment.


Order
Log Type
Status Code
Description

1

debug

INITIALIZING

Indicates the SDK initialization has started. Outputs initialization options.

2

debug

NETWORK_STATUS

Checks network status and outputs network type and speed (downlink).

3

debug

MEMORY_STATUS

Checks memory status and outputs heap memory usage and limits.

4

info

INITIALIZING

Indicates the SDK is being initialized.

5

info

SOCKET_CONNECTING

Indicates an attempt to connect WebSocket. Outputs connection settings.

6

info

SOCKET_CONNECTED

Indicates a successful WebSocket connection.

7

debug

SOCKET_MESSAGE_SENT

Outputs the message sent through WebSocket.

8

debug

SOCKET_MESSAGE

Outputs the message received via WebSocket, including type, content, and timestamp.

9

info

STREAMING_CONNECTING

Indicates an attempt to connect to Agora streaming. Outputs connection settings.

10

info

STREAMING_CONNECTED

Indicates a successful connection to Agora streaming.

11

info

STREAMING_AUDIO_PUBLISHED

Indicates the audio track was successfully published on Agora.

12

info

CHANGE_AVATAR

Indicates the avatar has been changed. Outputs the ID of the new avatar.

13

warn

SOCKET_DISCONNECTED

Indicates the WebSocket connection has been disconnected.

14

info

DESTROYING

Indicates the SDK is in the process of being destroyed.

15

info

DESTROYED

Indicates the SDK has been destroyed successfully.

16

error

CONNECTING_FAILED

Indicates that the API connection status check failed. Outputs information.

17

error

STREAMING_FAILED

Indicates the streaming connection failed. Outputs error code, message, and stack trace.

18

error

SOCKET_FAILED

Indicates an error occurred in WebSocket. Outputs error details.

19

error

STREAMING_UNKNOWN_ERROR

Indicates an unknown error occurred during streaming. Outputs error object.

Type
Description

debug

Detailed information for debugging. Used to trace issues or understand detailed execution flow during development.

info

General information. Logs system states or key events, indicating normal operation.

warn

Warning-level information. Indicates situations that are not critical but may lead to potential issues.

error

Critical errors. Logs unexpected errors or issues that may cause the system to halt.

silent

Does not output any logs.

Type
Output Log Levels

debug

Outputs debug, info, warn, and error.

info

Outputs info, warn, and error.

warn

Outputs warn and error.

error

Outputs only error.

silent

No logs are output.

PreviousNextjsNextUpdates

Last updated 5 months ago

✨