<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/lib/logger/formatter.rb, branch v3_4_9</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>[ruby/logger] Another performance improvement on the Formatter by</title>
<updated>2022-12-08T03:31:36+00:00</updated>
<author>
<name>Akira Matsuda</name>
<email>ronnie@dio.jp</email>
</author>
<published>2022-12-08T03:31:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=7e121dc4a883d1e69db601bdcaac42de33e176e1'/>
<id>7e121dc4a883d1e69db601bdcaac42de33e176e1</id>
<content type='text'>
using Kernel#sprintf over String#%
(https://github.com/ruby/logger/pull/75)

* Prefer Kernel#sprintf over String#% for formatting Strings</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
using Kernel#sprintf over String#%
(https://github.com/ruby/logger/pull/75)

* Prefer Kernel#sprintf over String#% for formatting Strings</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/logger] Prefer String#[0, 1] over [0..0]</title>
<updated>2022-05-05T10:09:49+00:00</updated>
<author>
<name>Akira Matsuda</name>
<email>ronnie@dio.jp</email>
</author>
<published>2022-05-05T09:01:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=0b625352196d782e476c8c383e61baa47ab8d3c4'/>
<id>0b625352196d782e476c8c383e61baa47ab8d3c4</id>
<content type='text'>
[0..0] internally creates an extra Array object, and so is slower and much more memory consuming

https://github.com/ruby/logger/commit/20616ad34a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
[0..0] internally creates an extra Array object, and so is slower and much more memory consuming

https://github.com/ruby/logger/commit/20616ad34a
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/logger] Changes to datetime formatting</title>
<updated>2021-12-17T23:38:57+00:00</updated>
<author>
<name>Baron Bloomer</name>
<email>baronbloomer@gmail.com</email>
</author>
<published>2021-07-29T08:31:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=a8b11b5cdd5fedd30a65e60bdae4c00d259d4191'/>
<id>a8b11b5cdd5fedd30a65e60bdae4c00d259d4191</id>
<content type='text'>
Formatting a datetime should only pertain to itself and valid datetimes do not contain a space. Should there be a desire to show show a space between the datetime and the process pid in the formatted log, this formatting logic should take place there.
Furthermore, the default datetime format is moved to a class variable to allowing this variable to be overwritten by subclasses.

https://github.com/ruby/logger/commit/7cbd434349
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Formatting a datetime should only pertain to itself and valid datetimes do not contain a space. Should there be a desire to show show a space between the datetime and the process pid in the formatted log, this formatting logic should take place there.
Furthermore, the default datetime format is moved to a class variable to allowing this variable to be overwritten by subclasses.

https://github.com/ruby/logger/commit/7cbd434349
</pre>
</div>
</content>
</entry>
<entry>
<title>Reference process PID using the Process#pid</title>
<updated>2020-09-29T18:50:46+00:00</updated>
<author>
<name>Maciej Mensfeld</name>
<email>maciej@mensfeld.pl</email>
</author>
<published>2020-09-28T13:20:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=0fb1a67bda8df28ed954f4c4eb7782e11a35beb9'/>
<id>0fb1a67bda8df28ed954f4c4eb7782e11a35beb9</id>
<content type='text'>
This change will allow formatter to run from Ractors other than main.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This change will allow formatter to run from Ractors other than main.</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/logger] Avoid creating [] and "" when logging an Exception that has no backtrace</title>
<updated>2019-12-09T10:17:31+00:00</updated>
<author>
<name>Akira Matsuda</name>
<email>ronnie@dio.jp</email>
</author>
<published>2019-07-31T05:38:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=6158e28f8d02026e21317d8a0c2cb2115b3a0660'/>
<id>6158e28f8d02026e21317d8a0c2cb2115b3a0660</id>
<content type='text'>
https://github.com/ruby/logger/commit/75fd308053
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/logger/commit/75fd308053
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/logger] frozen_string_literal: true</title>
<updated>2019-12-09T10:17:31+00:00</updated>
<author>
<name>sonots</name>
<email>sonots@gmail.com</email>
</author>
<published>2019-03-21T16:14:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=0aafc32995b935b6c46c8439a3e2da008cd683fc'/>
<id>0aafc32995b935b6c46c8439a3e2da008cd683fc</id>
<content type='text'>
https://github.com/ruby/logger/commit/a057eede7b
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/logger/commit/a057eede7b
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/logger] split logger classes/modules into separate files</title>
<updated>2019-07-15T05:43:07+00:00</updated>
<author>
<name>Colby Swandale</name>
<email>me@colby.fyi</email>
</author>
<published>2018-12-12T03:08:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=bbe157f34046ec9ef81e6ad9ed37c86a0d9155e4'/>
<id>bbe157f34046ec9ef81e6ad9ed37c86a0d9155e4</id>
<content type='text'>
https://github.com/ruby/logger/commit/f10ce9fff2
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/logger/commit/f10ce9fff2
</pre>
</div>
</content>
</entry>
</feed>
