Method: GoogleLogger::Loggers::CloudLogger#initialize

Defined in:
lib/google_logger/loggers/cloud_logger.rb

#initializeCloudLogger

Creates a new logger with project_id and credentials specified in configuration



9
10
11
12
13
14
# File 'lib/google_logger/loggers/cloud_logger.rb', line 9

def initialize
  @project = Google::Cloud::Logging.new(
    project_id: configuration.project_id,
    credentials: configuration.credentials
  )
end