Thanks to visit codestin.com
Credit goes to github.com

Skip to content

daemon logging: unifying output and timestamps#8238

Merged
LK4D4 merged 1 commit into
moby:masterfrom
vbatts:vbatts-daemon_timestamps
Oct 16, 2014
Merged

daemon logging: unifying output and timestamps#8238
LK4D4 merged 1 commit into
moby:masterfrom
vbatts:vbatts-daemon_timestamps

Conversation

@vbatts

@vbatts vbatts commented Sep 25, 2014

Copy link
Copy Markdown
Contributor

A little refactor of the ./pkg/log so engine can have a logger instance

Signed-off-by: Vincent Batts [email protected]

ping @shykes @vieux @crosbymichael for the ./docker and ./pkg/log changes
ping @crosbymichael for the ./pkg/iptables changes
ping @shykes for the ./engine changes

ping @tiborvass since he and i conspired ... 👅

@vbatts vbatts force-pushed the vbatts-daemon_timestamps branch 2 times, most recently from 6d1f856 to 2927510 Compare September 25, 2014 18:27
@vieux

vieux commented Sep 25, 2014

Copy link
Copy Markdown
Contributor

@vbatts drone.io tests are failing

@vbatts vbatts force-pushed the vbatts-daemon_timestamps branch from 2927510 to 82f9c55 Compare September 25, 2014 19:05
@vbatts

vbatts commented Sep 25, 2014

Copy link
Copy Markdown
Contributor Author

not sure why the time format looks different on drone.io ... but i fixed it

@vieux

vieux commented Sep 25, 2014

Copy link
Copy Markdown
Contributor

LGTM

Comment thread pkg/log/log.go Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Doesn't it make more sense to put the time first and then the priority? Just curious.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm down for what ever

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@vbatts I guess it's easier for scripting: merging logs and then sorting them would be possible if the first thing is the timestamp

@vbatts

vbatts commented Sep 25, 2014

Copy link
Copy Markdown
Contributor Author

I would love to give engine.Engine a logger to send its Logf to, but that format is not quite the same. Thoughts on unifying it so we could have a single format for daemon logs?

@tiborvass

Copy link
Copy Markdown
Contributor

@vbatts i think that should be separate from this PR.

@vbatts

vbatts commented Sep 25, 2014

Copy link
Copy Markdown
Contributor Author

@tiborvass fair. Should I remove the timestamp to engine Logf from this PR?

@tiborvass

Copy link
Copy Markdown
Contributor

@vbatts that can stay. I just find it easier to merge this PR without rethinking engine logging.

@vbatts

vbatts commented Sep 25, 2014

Copy link
Copy Markdown
Contributor Author

@tiborvass yup. carry on.

Comment thread pkg/log/log.go Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't like having a defer here. I would just call it

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

alrighty

@vbatts vbatts force-pushed the vbatts-daemon_timestamps branch from 82f9c55 to 6acc569 Compare September 26, 2014 18:31
@vbatts

vbatts commented Sep 26, 2014

Copy link
Copy Markdown
Contributor Author

@crosbymichael fixed

A little refactor of the ./pkg/log so engine can have a logger instance

Signed-off-by: Vincent Batts <[email protected]>
@vbatts vbatts force-pushed the vbatts-daemon_timestamps branch from 6acc569 to 92df943 Compare September 26, 2014 18:45
@vbatts

vbatts commented Sep 26, 2014

Copy link
Copy Markdown
Contributor Author

@tiborvass i've put the timestamp first now. PTAL

@jessfraz

Copy link
Copy Markdown
Contributor

LGTM

@LK4D4

LK4D4 commented Oct 16, 2014

Copy link
Copy Markdown
Contributor

LGTM

LK4D4 added a commit that referenced this pull request Oct 16, 2014
daemon logging: unifying output and timestamps
@LK4D4 LK4D4 merged commit cb106e7 into moby:master Oct 16, 2014
@vbatts vbatts deleted the vbatts-daemon_timestamps branch April 27, 2016 18:02
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.

6 participants