Skip to content

Conversation

@BurdetteLamar
Copy link
Member

This covers the methods and accessors, along with further changes and reorgs in the class doc itself.

lib/logger.rb Outdated
# Reopen a log device.
# Sets the logger's output stream:
#
# - If +logdev+ is +nil+, reopens the already-established output stream.
Copy link
Member

Choose a reason for hiding this comment

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

I'm a bit confused as to what "already-established" means. Do you think "current" is a better word to use?

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed.

lib/logger.rb Outdated
self
end

# Creates a log entry (which may or may not be written to the log).
Copy link
Member

Choose a reason for hiding this comment

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

I think we should be clear that it "may or may not be written to the log" because of the log level (and not because it does sampling or intermittently fails or some other reason).

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed.

lib/logger.rb Outdated
# When you call instance method #add (or its alias #log),
# an entry may (or may not) be written to the log;
# When you call any of these methods,
# the entry may (or may not) be written to the log;
Copy link
Member

Choose a reason for hiding this comment

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

Ditto on clarifying the "may or may not".

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed.

BurdetteLamar and others added 6 commits May 13, 2022 14:40
Co-authored-by: Peter Zhu <peter@peterzhu.ca>
Co-authored-by: Peter Zhu <peter@peterzhu.ca>
Co-authored-by: Peter Zhu <peter@peterzhu.ca>
Co-authored-by: Peter Zhu <peter@peterzhu.ca>
Co-authored-by: Peter Zhu <peter@peterzhu.ca>
Copy link
Member

@peterzhu2118 peterzhu2118 left a comment

Choose a reason for hiding this comment

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

Looks good.

Could you use the "Squash and merge" button when merging to squash all of the commits into one?

@BurdetteLamar BurdetteLamar merged commit c601ed0 into ruby:master May 13, 2022
matzbot pushed a commit to ruby/ruby that referenced this pull request May 13, 2022
Enhanced RDoc for Logger

ruby/logger@c601ed0370

Co-authored-by: Peter Zhu <peter@peterzhu.ca>
schneems pushed a commit to schneems/ruby that referenced this pull request May 23, 2022
Enhanced RDoc for Logger

ruby/logger@c601ed0370

Co-authored-by: Peter Zhu <peter@peterzhu.ca>
schneems pushed a commit to schneems/ruby that referenced this pull request Jul 26, 2022
Enhanced RDoc for Logger

ruby/logger@c601ed0370

Co-authored-by: Peter Zhu <peter@peterzhu.ca>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants