UNPKG

2.06 kBTypeScriptView Raw
1import { AwsLogDriverProps } from './aws-log-driver';
2import { FireLensLogDriverProps } from './firelens-log-driver';
3import { FluentdLogDriverProps } from './fluentd-log-driver';
4import { GelfLogDriverProps } from './gelf-log-driver';
5import { JournaldLogDriverProps } from './journald-log-driver';
6import { JsonFileLogDriverProps } from './json-file-log-driver';
7import { LogDriver } from './log-driver';
8import { SplunkLogDriverProps } from './splunk-log-driver';
9import { SyslogLogDriverProps } from './syslog-log-driver';
10/**
11 * The base class for log drivers.
12 */
13export declare class LogDrivers {
14 /**
15 * Creates a log driver configuration that sends log information to CloudWatch Logs.
16 */
17 static awsLogs(props: AwsLogDriverProps): LogDriver;
18 /**
19 * Creates a log driver configuration that sends log information to fluentd Logs.
20 */
21 static fluentd(props?: FluentdLogDriverProps): LogDriver;
22 /**
23 * Creates a log driver configuration that sends log information to gelf Logs.
24 */
25 static gelf(props: GelfLogDriverProps): LogDriver;
26 /**
27 * Creates a log driver configuration that sends log information to journald Logs.
28 */
29 static journald(props?: JournaldLogDriverProps): LogDriver;
30 /**
31 * Creates a log driver configuration that sends log information to json-file Logs.
32 */
33 static jsonFile(props?: JsonFileLogDriverProps): LogDriver;
34 /**
35 * Creates a log driver configuration that sends log information to splunk Logs.
36 */
37 static splunk(props: SplunkLogDriverProps): LogDriver;
38 /**
39 * Creates a log driver configuration that sends log information to syslog Logs.
40 */
41 static syslog(props?: SyslogLogDriverProps): LogDriver;
42 /**
43 * Creates a log driver configuration that sends log information to firelens log router.
44 * For detail configurations, please refer to Amazon ECS FireLens Examples:
45 * https://github.com/aws-samples/amazon-ecs-firelens-examples
46 */
47 static firelens(props: FireLensLogDriverProps): LogDriver;
48}