File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 1
1
export * from './constants'
2
2
export * from './http'
3
+ export * from './pkgs/console'
3
4
export * from './core'
Original file line number Diff line number Diff line change
1
+ function trace ( message ?: any , ...optionalParams : any [ ] ) : void {
2
+ console . trace ( message , optionalParams )
3
+ }
4
+
5
+ function info ( message ?: any , ...optionalParams : any [ ] ) : void {
6
+ console . info ( message , optionalParams )
7
+ }
8
+ function log ( message ?: any , ...optionalParams : any [ ] ) : void {
9
+ console . log ( message , optionalParams )
10
+ }
11
+
12
+ function warn ( message ?: any , ...optionalParams : any [ ] ) : void {
13
+ console . warn ( message , optionalParams )
14
+ }
15
+
16
+ function error ( message ?: any , ...optionalParams : any [ ] ) : void {
17
+ console . error ( message , optionalParams )
18
+ }
19
+
20
+ /**
21
+ * 日志
22
+ */
23
+ export const VipConsole = {
24
+ log,
25
+ info,
26
+ warn,
27
+ trace,
28
+ error,
29
+ }
You can’t perform that action at this time.
0 commit comments