Fixes the File::CREAT logger documentation
Co-Authored-By: Matias Korhonen <matias@kiskolabs.com> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a818fca33a
commit
655b3da03c
@ -109,7 +109,7 @@ require 'monitor'
|
|||||||
# 3. Create a logger for the specified file.
|
# 3. Create a logger for the specified file.
|
||||||
#
|
#
|
||||||
# file = File.open('foo.log', File::WRONLY | File::APPEND)
|
# file = File.open('foo.log', File::WRONLY | File::APPEND)
|
||||||
# # To create new (and to remove old) logfile, add File::CREAT like:
|
# # To create new logfile, add File::CREAT like:
|
||||||
# # file = File.open('foo.log', File::WRONLY | File::APPEND | File::CREAT)
|
# # file = File.open('foo.log', File::WRONLY | File::APPEND | File::CREAT)
|
||||||
# logger = Logger.new(file)
|
# logger = Logger.new(file)
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user