Skip to content
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

entry: break out time, level and message from data #48

Merged
merged 4 commits into from
Jul 27, 2014

Conversation

sirupsen
Copy link
Owner

Replaces #33 and fixes #44.

Please review @aybatme

@sirupsen
Copy link
Owner Author

@aybabtme oops. Working on some tests.

@@ -8,9 +8,24 @@ import (
"time"
)

// An entry is the final or intermediate Logrus logging entry. It containts all
Copy link
Collaborator

Choose a reason for hiding this comment

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

The comment should start with Entry ...
Golint

As discussed, golint in another PR.

@aybabtme
Copy link
Collaborator

Since the fix is implemented in the formatters, what will happen if a user takes a third party formatter?

@sirupsen
Copy link
Owner Author

I think this is a formatter concern, not a concern of Logrus core. You should be able to override this functionality in your own formatters.

Level Level

// Message passed to Debug, Info, Warn, Error, Fatal or Panic
Message string
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Putting them as fields of Entry is 👍

sirupsen added a commit that referenced this pull request Jul 27, 2014
entry: break out time, level and message from data
@sirupsen sirupsen merged commit da97142 into master Jul 27, 2014
@sirupsen sirupsen deleted the break-out-specials branch July 27, 2014 02:23
@sirupsen sirupsen mentioned this pull request Jul 27, 2014
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.

Logrus can overwrite user supplied fields
2 participants