* * description: ws接口日志记录器 * author: kenan * created on: 2021-04-08 上午11:20 * param param_1: * param param_2: * return return_1: */
(msg string, params ...interface{})
| 328 | * return return_1: |
| 329 | */ |
| 330 | func WSLog(msg string, params ...interface{}) { |
| 331 | line, functionName := 0, "???" |
| 332 | pc, _, line, ok := runtime.Caller(1) |
| 333 | if ok { |
| 334 | functionName = runtime.FuncForPC(pc).Name() |
| 335 | } |
| 336 | SmartIDELog.ConsoleDebug(fmt.Sprintf("[WS] | %s:%d | %s\n", functionName, line, fmt.Sprintf(msg, params...))) |
| 337 | } |
no test coverage detected