import axios, { type AxiosPromise } from 'axios';

export default class LogsService {
  changeLevel(name: string, configuredLevel: string): AxiosPromise<any> {
    return axios.post(`management/loggers/${name}`, { configuredLevel });
  }

  findAll(): AxiosPromise<any> {
    return axios.get('management/loggers');
  }
}
