blob: 99b4cdfcfda1f6692b15f5de058d8883b336f70f [file] [log] [blame]
Girish Kumar8f73fe02019-12-09 13:19:37 +00001/*
Esin Karamanccb714b2019-11-29 15:02:06 +00002 * Copyright 2020-present Open Networking Foundation
Girish Kumar8f73fe02019-12-09 13:19:37 +00003 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
Esin Karamanccb714b2019-11-29 15:02:06 +000016package kafka
Girish Kumar8f73fe02019-12-09 13:19:37 +000017
18import (
Esin Karamanccb714b2019-11-29 15:02:06 +000019 "github.com/opencord/voltha-lib-go/v3/pkg/log"
Girish Kumar8f73fe02019-12-09 13:19:37 +000020)
21
Neha Sharma96b7bf22020-06-15 10:37:32 +000022var logger log.CLogger
Esin Karamanccb714b2019-11-29 15:02:06 +000023
Girish Kumar8f73fe02019-12-09 13:19:37 +000024func init() {
25 // Setup this package so that it's log level can be modified at run time
Esin Karamanccb714b2019-11-29 15:02:06 +000026 var err error
Neha Sharma96b7bf22020-06-15 10:37:32 +000027 logger, err = log.RegisterPackage(log.JSON, log.ErrorLevel, log.Fields{"pkg": "kafka"})
Girish Kumar8f73fe02019-12-09 13:19:37 +000028 if err != nil {
29 panic(err)
30 }
31}