"Fossies" - the Fresh Open Source Software Archive

Member "jitsi-meet-7319/react/features/base/logging/actions.ts" (6 Jun 2023, 858 Bytes) of package /linux/misc/jitsi-meet-7319.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) TypeScript source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 import { SET_LOGGING_CONFIG, SET_LOG_COLLECTOR } from './actionTypes';
    2 
    3 /**
    4  * Stores a {@code Logger.LogCollector} instance which will be uploading logs
    5  * to CallStats.
    6  *
    7  * @param {Logger.LogCollector} logCollector - The log collector instance to be
    8  * stored in the Redux state of base/logging feature.
    9  * @returns {{
   10  *     type,
   11  *     logCollector: Object
   12  * }}
   13  */
   14 export function setLogCollector(logCollector?: Object) {
   15     return {
   16         type: SET_LOG_COLLECTOR,
   17         logCollector
   18     };
   19 }
   20 
   21 /**
   22  * Sets the configuration of the feature base/logging.
   23  *
   24  * @param {Object} config - The configuration to set on the features
   25  * base/logging.
   26  * @returns {{
   27  *     type: SET_LOGGING_CONFIG,
   28  *     config: Object
   29  * }}
   30  */
   31 export function setLoggingConfig(config: Object) {
   32     return {
   33         type: SET_LOGGING_CONFIG,
   34         config
   35     };
   36 }