$ui/utils/log

日志打印模块

Source:
Author:
  • chenhuachun

Methods

(static) create() → {log}

Source:

创建log日志实例,返回一个包含全部输入日志方法集合的对象

Returns:
Type
log

(static) dir(…对象)

Source:

枚举对象属性

Parameters:
Name Type Attributes Description
对象 string <repeatable>

(static) error(…日志内容)

Source:

打印错误日志

Parameters:
Name Type Attributes Description
日志内容 string <repeatable>

(static) info()

Source:

打印信息

(static) log()

Source:

打印信息日志

(static) tip(title, info, typeopt)

Source:

输出提示信息

Parameters:
Name Type Attributes Default Description
title string

标题

info string

内容

type string <optional>
primary

颜色类型,支持:primary/success/warn/error

(static) warn(…日志内容)

Source:

打印警告日志

Parameters:
Name Type Attributes Description
日志内容 string <repeatable>