github.com/blend/go-sdk@v1.20220411.3/examples/logger/meta/main.go (about)

     1  /*
     2  
     3  Copyright (c) 2022 - Present. Blend Labs, Inc. All rights reserved
     4  Use of this source code is governed by a MIT license that can be found in the LICENSE file.
     5  
     6  */
     7  
     8  package main
     9  
    10  import "github.com/blend/go-sdk/logger"
    11  
    12  // L is a helper type alias.
    13  type L = logger.Labels
    14  
    15  func main() {
    16  	log := logger.All()
    17  
    18  	log.WithLabels(L{"foo": "bar"}).Info("this is a test")
    19  	log.WithLabels(L{"foo": "baz", "url": "something"}).Debug("this is a test")
    20  }