class SemanticLogger::Appender::CloudwatchLogs
def initialize(
Note that currently CloudWatch Logs has 10000 hard limit.
Flush buffered logs if they are above the currently set size.
max_buffered_events: [Integer]
Default: 5
Flush buffered logs every X seconds, regardless of the current buffer size.
force_flush_interval_seconds: [Integer]
Default: true
If the missing log stream should be automatically created.
create_stream: [Boolean]
Default: false
If the missing log group should be automatically created.
create_group: [Boolean]
Default: SemanticLogger.host
Log stream name
stream: [String]
Default: {}
A hash to be passed to Aws::CloudWatchLogs::Client.new
client_kwargs: [Hash]
Log group name
group: [String]
Parameters:
Create CloudWatch Logs Appender
def initialize( *args, group:, client_kwargs: {}, stream: nil, create_group: false, create_stream: true, force_flush_interval_seconds: 5, max_buffered_events: 4_000, **kwargs, &block ) @group = group @client_kwargs = client_kwargs @stream = stream @create_group = create_group @create_stream = create_stream @force_flush_interval_seconds = force_flush_interval_seconds @max_buffered_events = max_buffered_events super(*args, **kwargs, &block) reopen end