Socket
Socket
Sign inDemoInstall

@webex/plugin-logger

Package Overview
Dependencies
206
Maintainers
7
Versions
1164
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @webex/plugin-logger


Version published
Weekly downloads
13K
increased by16.85%
Maintainers
7
Created
Weekly downloads
 

Changelog

Source

3.0.0-beta.304 (2024-01-09)

Bug Fixes

  • meetings: ensure non-undefined value for peripheral information property (#3281) (09ace65)

Readme

Source

@webex/plugin-logger

standard-readme compliant

Logging plugin for the Cisco Webex JS SDK.

Install

npm install --save @webex/plugin-logger

Usage

This is a plugin for the Cisco Webex JS SDK . Please see our developer portal and the API docs for full details.

const Webex = require('webex');
const webex = Webex.init();

webex.logger.info('Hello World'); // => wx-js-sdk Hello World

Log Levels

This logger plugin supports different logging levels to control what gets output to the user's console:

  • silent
    • Nothing prints to the console.
  • error [DEFAULT]
    • Error messages thrown by exceptions. This level is meant for the developer and end user to help with troubleshooting.
    • Example: Unable to connect to websocket on port 4343
  • warn
    • Warning messages meant to help guide developers away from potential errors.
    • Example: The usage of person email has been deprecated
  • log
    • General output of logging messages.
    • Example: Websocket connected on port 4343
  • info
    • More detailed logging of SDK information.
    • Example: Network status changed from DISCONNECTED to ONLINE
  • debug
    • Developer specific information, helpful with debugging issues.
    • Example: Network packet received, contents: {data}
  • trace
    • Prints the stack trace of the current call path.

Level Control

The developer can control what level gets printed by setting the environment variable: WEBEX_LOG_LEVEL.

These variables can be set on the command line or in the .env file:

WEBEX_LOG_LEVEL="debug" npm start
# .env file
WEBEX_LOG_LEVEL=debug

Maintainers

This package is maintained by Cisco Webex for Developers.

Contribute

Pull requests welcome. Please see CONTRIBUTING.md for more details.

License

© 2016-2020 Cisco and/or its affiliates. All Rights Reserved.

FAQs

Last updated on 26 Mar 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc