Module: CloudWatchLogger::Client

Defined in:
lib/cloudwatchlogger/client.rb,
lib/cloudwatchlogger/client/aws_sdk.rb,
lib/cloudwatchlogger/client/aws_sdk/threaded.rb

Defined Under Namespace

Modules: InstanceMethods Classes: AWS_SDK

Class Method Summary collapse

Class Method Details

.new(credentials, log_group_name, log_stream_name = nil, opts = {}) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/cloudwatchlogger/client.rb', line 8

def self.new(credentials, log_group_name, log_stream_name = nil, opts = {})
  unless log_group_name
    raise LogGroupNameRequired, 'log_group_name is required'
  end

  CloudWatchLogger::Client::AWS_SDK.new(credentials, log_group_name, log_stream_name, opts)
end