Skip to content

add stack trace to log#5

Open
llCorvinSll wants to merge 3 commits into
koroandr:masterfrom
llCorvinSll:issue/#4
Open

add stack trace to log#5
llCorvinSll wants to merge 3 commits into
koroandr:masterfrom
llCorvinSll:issue/#4

Conversation

@llCorvinSll

Copy link
Copy Markdown

#4 and console output improvements

export default class BasicLayout implements ILayout {
format(entry:LogEntry):string {
return this.formatDate(entry.time) + ' ' + logLevelToString(entry.level) + ' [' + entry.tag + '] - ' + entry.message;
format(entry:LogEntry, include_data: boolean):string {

@koroandr koroandr Jul 21, 2016

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

The idea was to keep API simple and mimic the log4j and others. I think, passing some flags (especially when they lead us to repeating code in formatData) is not a good idea.

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.

2 participants