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

Nicer logging for debugging #282

Closed
wants to merge 1 commit into from
Closed

Nicer logging for debugging #282

wants to merge 1 commit into from

Conversation

halorgium
Copy link
Contributor

It is almost impossible to determine where logs after coming from unless you add metadata yourself.
We have this information inside the system, so this exposes that outward.

Quite verbose, but useful.

@@ -573,5 +574,36 @@ def future(meth = nil, *args, &block)
# Configure default systemwide settings
Celluloid.task_class = Celluloid::TaskFiber
Celluloid.logger = Logger.new(STDERR)
Celluloid.logger.formatter = Celluloid::Logger::FORMATTER = proc do |severity, datetime, progname, msg|
thread = Thread.current
id = " " * 36
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Allocation is unnecessary....

@halorgium
Copy link
Contributor Author

@tarcieri this is conceptually here, but I want to move the debug info onto the respective objects to avoid infinite string allocation for each logger call.

@ghost ghost assigned halorgium Oct 6, 2013
@e2 e2 mentioned this pull request May 7, 2014
@digitalextremist
Copy link
Member

@e2 is this mergeable now you think? Since 2013 it seems there has been BSD progress.

@halorgium would you mind looking at this and your stale branches for 0.18.0?

@digitalextremist digitalextremist added this to the 0.18.0 milestone Apr 8, 2015
@e2
Copy link
Contributor

e2 commented Apr 8, 2015

I saw this PR years ago.

Celluloid needs a better debugging framework, but I'm sure that would hurt performance too much - because the areas you'd want the information are pretty critical, and the log files aren't really useful any more (too much stuff going on in there).

It's partially why I suggested: #548.

The best solution is to probably set Celluloid up so it can traces externally (without a performance hit). Kind of like a strace().

This probably needs a separate issue though.

@digitalextremist digitalextremist modified the milestones: 0.18.0, 0.17.5 Aug 29, 2015
@halorgium halorgium removed their assignment Feb 22, 2016
@digitalextremist digitalextremist modified the milestones: 0.18.0, 0.17.5 Jun 6, 2016
@tarcieri
Copy link
Member

This is woefully out of date. Closing.

@tarcieri tarcieri closed this Nov 27, 2016
@tarcieri tarcieri deleted the nice-log branch November 27, 2016 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants