Some checks failed
Auto Tag Develop / tag (push) Has been cancelled
Reviewed-on: #3 Co-authored-by: tristan <tristan@yuno.malio.fr> Co-committed-by: tristan <tristan@yuno.malio.fr>
16 lines
585 B
TypeScript
16 lines
585 B
TypeScript
import type { LogOutput } from './dto/logs'
|
|
|
|
export function getDockerLogs(envId: number, lines: number = 100): Promise<LogOutput> {
|
|
return useApi().get<LogOutput>(`/environments/${envId}/logs/docker`, { lines }, {
|
|
toast: false,
|
|
})
|
|
}
|
|
|
|
export function getSymfonyLog(envId: number, logFileId: number, lines: number = 100, level?: string): Promise<LogOutput> {
|
|
const query: Record<string, any> = { lines }
|
|
if (level) query.level = level
|
|
return useApi().get<LogOutput>(`/environments/${envId}/logs/symfony/${logFileId}`, query, {
|
|
toast: false,
|
|
})
|
|
}
|