Skip to content

Commit 4d0bc77

Browse files
authored
Merge pull request rails#49878 from skipkayhil/hm-doc-ar-core-logger
Update AR::Core#logger to match configuring guide [ci-skip]
2 parents 76ccbe6 + 10e0eeb commit 4d0bc77

File tree

1 file changed

+4
-3
lines changed
  • activerecord/lib/active_record

1 file changed

+4
-3
lines changed

activerecord/lib/active_record/core.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ module Core
1515
##
1616
# :singleton-method:
1717
#
18-
# Accepts a logger conforming to the interface of Log4r which is then
19-
# passed on to any new database connections made and which can be
20-
# retrieved on both a class and instance level by calling +logger+.
18+
# Accepts a logger conforming to the interface of Log4r or the default
19+
# Ruby +Logger+ class, which is then passed on to any new database
20+
# connections made. You can retrieve this logger by calling +logger+ on
21+
# either an Active Record model class or an Active Record model instance.
2122
class_attribute :logger, instance_writer: false
2223

2324
class_attribute :_destroy_association_async_job, instance_accessor: false, default: "ActiveRecord::DestroyAssociationAsyncJob"

0 commit comments

Comments
 (0)