oneline_log_formatter 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e513826de84a29156f48a88f369763b2779cbb6d
4
- data.tar.gz: 6708475f83307566520018434e1bbd95744da533
3
+ metadata.gz: 0d680e6336bee42c8ea83535c5ed94f69bb142c0
4
+ data.tar.gz: d953b3026e017d77ab47061c5b292b5ed839e329
5
5
  SHA512:
6
- metadata.gz: 98df061eb86a692cd9dec0958ffcc943404ff3b37a644d3f6740995d2f9eae2a25706ef96632c6bfc81f37193037aa0ead030e0b335696d21e361b55d328cc28
7
- data.tar.gz: 50b3ea8899164be8c62df93f6282d7206d97324b5c13a6ab1ca973f336aafefd28d70a54d7b98420071ecb0645b318c1aee3c9b70948527cb7b7ea6a9e28f3e2
6
+ metadata.gz: f65b9f92c45b1e1ac2934c530b6dbe696d7e326e1a7bc3011e0551f6f6d7dc75aad319de7114265b33e07a55d2f6c2a7ba9680527cd5264f93f3dcc14425fbce
7
+ data.tar.gz: 198344a5a7752a2a8f17d220f75d339f411571574a5c9eb612963e6541f3777434e0d914f0d30380bb996ae2df7db117f9610ce9ee48b2a5e97a114b0a78be82
@@ -1,3 +1,8 @@
1
+ # 0.0.2 (2016/08/17)
2
+
3
+ * Call `format_severity` (thanks to @ma2ge)
4
+
1
5
  # 0.0.1 (2015/04/23)
2
6
 
3
7
  First version
8
+
data/README.md CHANGED
@@ -32,9 +32,11 @@ logger.info("foo\nbar")
32
32
  which outputs logs like
33
33
 
34
34
  ```
35
- 20150423T00:00:00+09:00 [INFO] foo\\nbar
35
+ 20150423T00:00:00+09:00 [INFO] foo\nbar
36
36
  ```
37
37
 
38
+ Note that the line feed character is converted into `\n`.
39
+
38
40
  ## Rails
39
41
 
40
42
  Configure at `config/application.rb`
@@ -7,7 +7,7 @@ class OnelineLogFormatter
7
7
  end
8
8
 
9
9
  def call(severity, time, progname, msg)
10
- FORMAT % [format_datetime(time), severity, format_message(msg)]
10
+ FORMAT % [format_datetime(time), format_severity(severity), format_message(msg)]
11
11
  end
12
12
 
13
13
  private
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |gem|
6
6
  gem.name = "oneline_log_formatter"
7
- gem.version = "0.0.1"
7
+ gem.version = "0.0.2"
8
8
  gem.authors = ["Naotoshi Seo"]
9
9
  gem.email = ["sonots@gmail.com"]
10
10
  gem.description = %q{A logger formatter to output each log in one line forcely}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oneline_log_formatter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Naotoshi Seo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-23 00:00:00.000000000 Z
11
+ date: 2016-08-17 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A logger formatter to output each log in one line forcely
14
14
  email:
@@ -47,7 +47,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
47
47
  version: '0'
48
48
  requirements: []
49
49
  rubyforge_project:
50
- rubygems_version: 2.2.2
50
+ rubygems_version: 2.5.1
51
51
  signing_key:
52
52
  specification_version: 4
53
53
  summary: A logger formatter to output each log in one line forcely