MCPcopy Create free account
hub / github.com/OpenAtomFoundation/SmartIDE / ConsoleInLine

Method ConsoleInLine

cli/pkg/common/log.go:354–367  ·  view source on GitHub ↗

输出到控制台,在一行

(args ...interface{})

Source from the content-addressed store, hash-verified

352
353// 输出到控制台,在一行
354func (sLog *smartIDELogStruct) ConsoleInLine(args ...interface{}) {
355
356 if len(args) <= 0 {
357 return
358 }
359 strs := []string{}
360 for _, item := range args {
361 strs = append(strs, fmt.Sprint(item))
362 }
363 strs = entryptionKeys(strs) // 加密
364
365 fmt.Printf("\r%v\r", strs)
366 sugarLogger.Info(strs)
367}
368
369func (sLog *smartIDELogStruct) ImportanceWithError(err error) {
370 if err == nil {

Callers

nothing calls this directly

Calls 2

entryptionKeysFunction · 0.85
InfoMethod · 0.80

Tested by

no test coverage detected