C# Class Ivony.Logs.Aws.CloudWatchLogger

Inheritance: System.Logger
显示文件 Open project: Ivony/LogUtility

Public Methods

Method Description
AppendStream ( AmazonCloudWatchLogsClient client, string groupName, string streamName ) : CloudWatchLogger

附加到现有日志流并开始记录

CreateStream ( AmazonCloudWatchLogsClient client, string groupName, string streamName ) : CloudWatchLogger

创建一个新的日志流并开始记录

LogEntry ( LogEntry entry ) : void

Protected Methods

Method Description
CloudWatchLogger ( AmazonCloudWatchLogsClient client, string groupName, string streamName, string sequenceToken = null ) : System
CreateLogEvent ( LogEntry entry ) : InputLogEvent

创建 LogEvent 对象

CreateRequest ( LogEntry entry ) : PutLogEventsRequest

创建日志记录请求

Method Details

AppendStream() public static method

附加到现有日志流并开始记录
public static AppendStream ( AmazonCloudWatchLogsClient client, string groupName, string streamName ) : CloudWatchLogger
client Amazon.CloudWatchLogs.AmazonCloudWatchLogsClient AWS 客户端
groupName string 日志组名称
streamName string 日志流名称
return CloudWatchLogger

CloudWatchLogger() protected method

protected CloudWatchLogger ( AmazonCloudWatchLogsClient client, string groupName, string streamName, string sequenceToken = null ) : System
client Amazon.CloudWatchLogs.AmazonCloudWatchLogsClient
groupName string
streamName string
sequenceToken string
return System

CreateLogEvent() protected method

创建 LogEvent 对象
protected CreateLogEvent ( LogEntry entry ) : InputLogEvent
entry LogEntry
return Amazon.CloudWatchLogs.Model.InputLogEvent

CreateRequest() protected method

创建日志记录请求
protected CreateRequest ( LogEntry entry ) : PutLogEventsRequest
entry LogEntry
return Amazon.CloudWatchLogs.Model.PutLogEventsRequest

CreateStream() public static method

创建一个新的日志流并开始记录
public static CreateStream ( AmazonCloudWatchLogsClient client, string groupName, string streamName ) : CloudWatchLogger
client Amazon.CloudWatchLogs.AmazonCloudWatchLogsClient AWS 客户端
groupName string 日志组名称
streamName string 日志流名称
return CloudWatchLogger

LogEntry() public method

public LogEntry ( LogEntry entry ) : void
entry LogEntry
return void