diff --git a/aggregator.go b/aggregator.go index 67edbdb5..331b4ded 100644 --- a/aggregator.go +++ b/aggregator.go @@ -37,11 +37,11 @@ import ( "syscall" "time" + "github.com/RedHatInsights/insights-operator-utils/logger" "github.com/rs/zerolog/log" "github.com/RedHatInsights/insights-results-aggregator/conf" "github.com/RedHatInsights/insights-results-aggregator/consumer" - "github.com/RedHatInsights/insights-results-aggregator/logger" "github.com/RedHatInsights/insights-results-aggregator/metrics" "github.com/RedHatInsights/insights-results-aggregator/migration" "github.com/RedHatInsights/insights-results-aggregator/server" diff --git a/conf/configuration.go b/conf/configuration.go index aae71cf6..4aa0056e 100644 --- a/conf/configuration.go +++ b/conf/configuration.go @@ -42,12 +42,12 @@ import ( "strings" "github.com/BurntSushi/toml" + "github.com/RedHatInsights/insights-operator-utils/logger" mapset "github.com/deckarep/golang-set" "github.com/rs/zerolog/log" "github.com/spf13/viper" "github.com/RedHatInsights/insights-results-aggregator/broker" - "github.com/RedHatInsights/insights-results-aggregator/logger" "github.com/RedHatInsights/insights-results-aggregator/server" "github.com/RedHatInsights/insights-results-aggregator/storage" "github.com/RedHatInsights/insights-results-aggregator/types" diff --git a/conf/configuration_test.go b/conf/configuration_test.go index 8398c480..d296a910 100644 --- a/conf/configuration_test.go +++ b/conf/configuration_test.go @@ -23,13 +23,13 @@ import ( "testing" "time" + "github.com/RedHatInsights/insights-operator-utils/logger" "github.com/RedHatInsights/insights-operator-utils/tests/helpers" mapset "github.com/deckarep/golang-set" "github.com/rs/zerolog" "github.com/stretchr/testify/assert" "github.com/RedHatInsights/insights-results-aggregator/conf" - "github.com/RedHatInsights/insights-results-aggregator/logger" "github.com/RedHatInsights/insights-results-aggregator/server" "github.com/RedHatInsights/insights-results-aggregator/storage" "github.com/RedHatInsights/insights-results-aggregator/types" diff --git a/docs/packages/aggregator.html b/docs/packages/aggregator.html index 6522fed3..81a2b62f 100644 --- a/docs/packages/aggregator.html +++ b/docs/packages/aggregator.html @@ -161,11 +161,11 @@
configuration.go | |
---|---|
- |
|
-
LoggingConfiguration represents configuration for logging in general - |
-
|
-
Debug enables pretty colored logging - |
-
|
-
LogLevel sets logging level to show. Possible values are: -"debug" -"info" -"warn", "warning" -"error" -"fatal" - -logging level won't be changed if value is not one of listed above - |
-
|
-
LoggingToCloudWatchEnabled enables logging to CloudWatch -(configuration for CloudWatch is in CloudWatchConfiguration) - |
-
|
-
CloudWatchConfiguration represents configuration of CloudWatch logger - |
-
|
-
enable debug logs for debugging aws client itself - |
-
|
-
logger.go | |
---|---|
- |
|
-
Package logger contains the configuration structures needed to configure -the access to CloudWatch server to sending the log messages there. - |
-
|
-
WorkaroundForRHIOPS729 keeps only those fields that are currently getting their way to Kibana -TODO: delete when RHIOPS-729 is fixed - |
-
|
-
it's not JSON object, so we don't do anything - |
-
|
-
lowercase the keys - |
-
|
-
AWSCloudWatchEndpoint allows you to mock cloudwatch client by redirecting requests to a local proxy - |
-
|
-
InitZerolog initializes zerolog with provided configs to use proper stdout and/or CloudWatch logging - |
-
|
-
nice colored output - |
-
|
-
zerolog doesn't implement Println required by sarama - |
-
|
-
SaramaZerologger is a wrapper to make sarama log to zerolog -those logs can be filtered by key "package" with value "sarama" - |
-
|
-
Print wraps print method - |
-
|
-
Printf wraps printf method - |
-
|
-
Println wraps println method - |
-
|
-
logger_test.go | |
---|---|
Copyright 2020 Red Hat, Inc - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - -
-
-Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. - |
-
|
-