Skip to content

Commit

Permalink
feat: add logger
Browse files Browse the repository at this point in the history
  • Loading branch information
wewoor committed Oct 23, 2020
1 parent 20bf72c commit c31031b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/common/logger.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
declare let __DEVELOPMENT__: boolean;

export default {
info(content: any) {
// The blow codes just for development
if (__DEVELOPMENT__) {
console.group(`Logger.info:`, content);
console.groupEnd();
}
},
};

0 comments on commit c31031b

Please sign in to comment.