github.com/hyperledger/aries-framework-go@v0.3.2/pkg/common/log/provider.go (about)

     1  /*
     2  Copyright SecureKey Technologies Inc. All Rights Reserved.
     3  
     4  SPDX-License-Identifier: Apache-2.0
     5  */
     6  
     7  package log
     8  
     9  import (
    10  	"github.com/hyperledger/aries-framework-go/component/log"
    11  	spilog "github.com/hyperledger/aries-framework-go/spi/log"
    12  )
    13  
    14  // Initialize sets new custom logging provider which takes over logging operations.
    15  // It is required to call this function before making any loggings for using custom loggers.
    16  func Initialize(l spilog.LoggerProvider) {
    17  	log.Initialize(l)
    18  }