@uppy/companion
Version:
OAuth helper and remote fetcher for Uppy's (https://uppy.io) extensible file upload widget with support for drag&drop, resumable uploads, previews, restrictions, file processing/encoding, remote providers like Dropbox and Google Drive, S3 and more :dog:
59 lines (58 loc) • 1.9 kB
TypeScript
/**
* Adds a list of strings that should be masked by the logger.
* This function can only be called once through out the life of the server.
*
* @param {Array} maskables a list of strings to be masked
*/
export function setMaskables(maskables: any[]): void;
export function setProcessName(newProcessName: any): void;
/**
* INFO level log
*
* @param {string} msg the message to log
* @param {string} [tag] a unique tag to easily search for this message
* @param {string} [traceId] a unique id to easily trace logs tied to a request
*/
export function info(msg: string, tag?: string, traceId?: string): void;
/**
* WARN level log
*
* @param {string} msg the message to log
* @param {string} [tag] a unique tag to easily search for this message
* @param {string} [traceId] a unique id to easily trace logs tied to a request
*/
export function warn(msg: string, tag?: string, traceId?: string): void;
/**
* ERROR level log
*
* @param {string | Error} msg the message to log
* @param {string} [tag] a unique tag to easily search for this message
* @param {string} [traceId] a unique id to easily trace logs tied to a request
*/
export function error(msg: string | Error, tag?: string, traceId?: string): void;
/**
* DEBUG level log
*
* @param {string} msg the message to log
* @param {string} [tag] a unique tag to easily search for this message
* @param {string} [traceId] a unique id to easily trace logs tied to a request
*/
export function debug(msg: string, tag?: string, traceId?: string): void;
export default logger;
/**
* message log
*/
export type styleText = typeof util.styleText;
/**
* message log
*/
export type Colors = Parameters<styleText>[0];
declare namespace logger {
export { setMaskables };
export { setProcessName };
export { info };
export { warn };
export { error };
export { debug };
}
import util from 'node:util';