File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed
Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change 1- import config from './config' ;
2-
31import { intercept } from './utils' ;
42
3+ export { default as Emoji } from './emoji' ;
4+
55export default class Logger {
66 static success ( args ) {
77 return intercept ( this . success . name , args ) ;
@@ -12,22 +12,18 @@ export default class Logger {
1212 }
1313
1414 static warn ( args ) {
15- return intercept ( ' warn' , args ) ;
15+ return intercept ( this . warn . name , args ) ;
1616 }
1717
1818 static error ( args ) {
19- return intercept ( ' error' , args ) ;
19+ return intercept ( this . error . name , args ) ;
2020 }
2121
2222 static trace ( args ) {
23- return intercept ( ' trace' , args ) ;
23+ return intercept ( this . trace . name , args ) ;
2424 }
2525
2626 static debug ( args ) {
27- return intercept ( 'debug' , args ) ;
28- }
29-
30- static setEmoji ( ...args ) {
31- return config . setEmoji ( ...args ) ;
27+ return intercept ( this . debug . name , args ) ;
3228 }
3329}
You can’t perform that action at this time.
0 commit comments