53 lines
2.2 KiB
TypeScript
53 lines
2.2 KiB
TypeScript
import type { AwsLogDriverProps } from './aws-log-driver';
|
|
import type { FireLensLogDriverProps } from './firelens-log-driver';
|
|
import type { FluentdLogDriverProps } from './fluentd-log-driver';
|
|
import type { GelfLogDriverProps } from './gelf-log-driver';
|
|
import type { JournaldLogDriverProps } from './journald-log-driver';
|
|
import type { JsonFileLogDriverProps } from './json-file-log-driver';
|
|
import type { LogDriver } from './log-driver';
|
|
import type { SplunkLogDriverProps } from './splunk-log-driver';
|
|
import type { SyslogLogDriverProps } from './syslog-log-driver';
|
|
/**
|
|
* The base class for log drivers.
|
|
*/
|
|
export declare class LogDrivers {
|
|
/**
|
|
* Creates a log driver configuration that sends log information to CloudWatch Logs.
|
|
*/
|
|
static awsLogs(props: AwsLogDriverProps): LogDriver;
|
|
/**
|
|
* Creates a log driver configuration that sends log information to fluentd Logs.
|
|
*/
|
|
static fluentd(props?: FluentdLogDriverProps): LogDriver;
|
|
/**
|
|
* Creates a log driver configuration that sends log information to gelf Logs.
|
|
*/
|
|
static gelf(props: GelfLogDriverProps): LogDriver;
|
|
/**
|
|
* Creates a log driver configuration that sends log information to journald Logs.
|
|
*/
|
|
static journald(props?: JournaldLogDriverProps): LogDriver;
|
|
/**
|
|
* Creates a log driver configuration that sends log information to json-file Logs.
|
|
*/
|
|
static jsonFile(props?: JsonFileLogDriverProps): LogDriver;
|
|
/**
|
|
* Creates a log driver configuration that sends log information to splunk Logs.
|
|
*/
|
|
static splunk(props: SplunkLogDriverProps): LogDriver;
|
|
/**
|
|
* Creates a log driver configuration that sends log information to syslog Logs.
|
|
*/
|
|
static syslog(props?: SyslogLogDriverProps): LogDriver;
|
|
/**
|
|
* Creates a log driver configuration that disables logging (Docker `none` driver).
|
|
*/
|
|
static none(): LogDriver;
|
|
/**
|
|
* Creates a log driver configuration that sends log information to firelens log router.
|
|
* For detail configurations, please refer to Amazon ECS FireLens Examples:
|
|
* https://github.com/aws-samples/amazon-ecs-firelens-examples
|
|
*/
|
|
static firelens(props: FireLensLogDriverProps): LogDriver;
|
|
}
|