Skip to content

Conversation

@IshaiAsor
Copy link
Collaborator

No description provided.

Copy link

@yaakovtheman yaakovtheman left a 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>

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 {

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{

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=>

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'});

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ליצור מחלקה של
configuration
ולהשתמש בה

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants