-
Couldn't load subscription status.
- Fork 0
Ts logger pr #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Ts logger pr #7
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
יפה
להשקיע בשמות משמעותיים
| </div> | ||
| </div> | ||
| </body> | ||
| <script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
להקפיד לכתוב
script
בקובץ נפרד
| this.configuration = configuration; | ||
| } | ||
|
|
||
| public log(level: any, strings: any[]): void { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
level : string
| this.consolePrinter(colorsTypes.red,strings); | ||
| } | ||
|
|
||
| private consolePrinter(colorType:colorsTypes,strings:any[]):void{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
להשתמש ב
any
רק כשאין ברירה
| private consolePrinter(colorType:colorsTypes,strings:any[]):void{ | ||
| if(this.configuration.console) | ||
| { | ||
| strings.forEach(x=> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
x = str
| } | ||
| } | ||
|
|
||
| let x:logger = new logger('test',{console: true, file: true, colors: true, logLevel: 'debug'}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ליצור מחלקה של
configuration
ולהשתמש בה
No description provided.