Go언어 log.SetPrefix()
package main import ( "fmt" "log" ) func init() { log.SetPrefix("Blockchain: ") } func main() { fmt.Println("test") log.Println("test") } 실행시켜보면 test Blockchain: 2021/04/15 15:04:03 test
package main import ( "fmt" "log" ) func init() { log.SetPrefix("Blockchain: ") } func main() { fmt.Println("test") log.Println("test") } 실행시켜보면 test Blockchain: 2021/04/15 15:04:03 test