Skip to content

Commit c31031b

Browse files
committed
feat: add logger
1 parent 20bf72c commit c31031b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/common/logger.ts

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
declare let __DEVELOPMENT__: boolean;
2+
3+
export default {
4+
info(content: any) {
5+
// The blow codes just for development
6+
if (__DEVELOPMENT__) {
7+
console.group(`Logger.info:`, content);
8+
console.groupEnd();
9+
}
10+
},
11+
};

0 commit comments

Comments
 (0)