![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
genesys-cloud-client-logger
Advanced tools
Common logger for genesys cloud client application to upload logs server
Logger to send client logs to a remote server.
See CHANGELOG.md for version updates.
npm install genesys-cloud-client-logger
Each Logger instance will have it's own configuration meaning you can have multiple apps using their own individual loggers. One thing to note is the loggers
will share a "log-uploader" for each given url
. For example, if app1
and app2
both POST logs to the same endpoint, they will have their own logger and
config, but will share the same uploader. Meaning only one POST request will happen at a time. This is to help reduce rate limiting by having multiple loggers
all sending POST requests to the same endpoint at the same time.
import { Logger } from 'genesys-cloud-client-logger';
const logger = new Logger({
url: 'https://yoursite.com/logs',
accessToken: 'your-access-token',
appVersion: '1.2.3',
appName: 'your-client-app1'
});
logger.info('Logger initialized');
Available options and their defaults:
interface ILoggerConfig {
/**
* JWT access token to use in HTTP request
*/
accessToken: string;
/**
* url to send the logs to (note this needs to be the full URL)
* an HTTP `POST` request will be issued to this url
*/
url: string;
/**
* the version of app using the logging library.
*/
appVersion: string;
/**
* All local logs will be prefixed by this.
* This is the app name of the app using the logger
* Could also be thought of as the `appName`.
*/
appName: string;
/**
* This name is used when the app who is using the logger
* (ie. the `logTopic` app) is being imported/used/consumed
* by another app. Another way to think about this would
* be `secondaryAppName` is who this app's logger is logging
* "on behalf of" or the "parent app of".
*/
secondaryAppName?: string;
/**
* This version is used when the app who is using the logger
* (ie. the `logTopic` app) is being imported/used/consumed
* by another app. Another way to think about this would
* be `secondaryAppName` is who this app's logger is logging
* "on behalf of" or the "parent app of".
*
* NOTE: this is only used if `secondaryAppName` is provided
*/
secondaryAppVersion?: string;
/**
* This should be the `clientId` of the parent app's logger.
* It is used to correlate the parent app to this child app.
*
* NOTE: this is only used if `secondaryAppName` is provided
*/
secondaryAppId?: string;
/**
* initialize server logging. defaults to `true`
*/
initializeServerLogging?: boolean;
/**
* logs at this level or high get sent to the server. defaults to 'info'
*/
logLevel?: LogLevel;
/**
* time to debounce logs uploads to the server. defaults to 4000
*/
uploadDebounceTime?: number;
/**
* debug logger events. defaults to `false`
*/
debugMode?: boolean;
/**
* stringify log details when writing to console. defaults to `false`
*/
stringify?: boolean;
}
FAQs
Common logger for genesys cloud client application to upload logs server
The npm package genesys-cloud-client-logger receives a total of 984 weekly downloads. As such, genesys-cloud-client-logger popularity was classified as not popular.
We found that genesys-cloud-client-logger demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.