UNPKG

stash-connector

Version:

Module to handle and work with Atlassian Stash projects and repositories throug REST API. Admin your repositories and projects in Stash easy. This project is not an Atlassian official project but use the Atlassian Stash REST API

56 lines (55 loc) 2.33 kB
import { Basic, EndpointService, Logger } from "../types"; /** * Class to manage and expose all endpoits and operations below '/rest/api/1.0/logs' */ export declare class LogsEndpoint extends EndpointService { /** * Contains all operations related with logs logger * All paths and operations from '/rest/api/1.0/logs/logger'. * @returns {LogsLoggerEndpoint} Get all operations about logs logger */ logger: () => LogsLoggerEndpoint; /** * Contains all operations related with logs root logger * All paths and operations from '/rest/api/1.0/logs/rootLogger'. * @returns {LogsRootLoggerEndpoint} Get all operations about root logger */ rootLogger: () => LogsRootLoggerEndpoint; constructor(auth: Basic); } /** * Class to manage and expose all endpoits and operations below '/rest/api/1.0/logs/logger' */ export declare class LogsLoggerEndpoint extends EndpointService { constructor(auth: Basic); /** * Retrieve the current log level for a given logger * @param {string} loggerName The name of the logger * @returns {Promise<Logger>} Promise with the logger data */ get(loggerName: string): Promise<Logger>; /** * Retrieve the current log level for a given logger * @param {string} loggerName The name of the logger * @param {string} loggerLevel The level to set the logger to * @returns {Promise<void>} If not throw errors, operation finish succesfully */ changeLevel(loggerName: string, loggerLevel: 'TRACE' | 'DEBUG' | 'INFO' | 'WARN ' | 'ERROR'): Promise<void>; } /** * Class to manage and expose all endpoits and operations below '/rest/api/1.0/logs/logger' */ export declare class LogsRootLoggerEndpoint extends EndpointService { constructor(auth: Basic); /** * Retrieve the current log level for a given logger * @returns {Promise<Logger>} Promise with the logger data */ get(): Promise<Logger>; /** * Retrieve the current log level for a given logger * @param {string} loggerLevel The level to set the logger to * @returns {Promise<void>} If not throw errors, operation finish succesfully */ changeLevel(loggerLevel: 'TRACE' | 'DEBUG' | 'INFO' | 'WARN ' | 'ERROR'): Promise<void>; }