github.com/grailbio/base@v0.0.11/cmdutil/naked-test/naked-test.go (about) 1 // Copyright 2018 GRAIL, Inc. All rights reserved. 2 // Use of this source code is governed by the Apache-2.0 3 // license that can be found in the LICENSE file. 4 5 package main 6 7 import ( 8 "flag" 9 "fmt" 10 11 _ "github.com/grailbio/base/cmdutil/interactive" 12 "github.com/grailbio/base/grail" 13 "v.io/x/lib/vlog" 14 ) 15 16 func main() { 17 shutdown := grail.Init() 18 defer shutdown() 19 20 fmt.Printf("%v\n", vlog.Log.LogDir()) 21 vlog.Infof("-----") 22 for i, a := range flag.Args() { 23 vlog.Infof("T: %d: %v", i, a) 24 vlog.VI(2).Infof("V2: %d: %v", i, a) 25 } 26 vlog.FlushLog() 27 }