itslog 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,22 +1,30 @@
1
1
  itslog
2
2
  ======
3
3
 
4
- `itslog` is a log formatter designed to aid development.
4
+ `itslog` is a log formatter designed to aid rails development.
5
5
 
6
- The formatting will prepend all log statements with a colored header.
6
+ The formatting will prepend all log statements with a colored header and additional information about the statement.
7
7
 
8
- [timestamp] [rails module] [normal log], example:
9
- 15:16:32 action_view Rendered layouts/_head.haml (8.5ms)
8
+ [timestamp] [rails namespace]: [normal log], example:
9
+
10
+ 15:16:32 action_view: Rendered layouts/_head.haml (8.5ms)
11
+
12
+ In addition to more readable logs you can tail and grep specific parts of your application. example:
13
+
14
+ tail -f log/development.log | grep active_record
15
+
16
+ Use itslog in conjunction with [axe](http://github.com/johmas/axe) for faster access to your logs.
10
17
 
11
18
  Install
12
19
  -------
13
20
 
14
21
  Add to your Gemfile in Rails:
15
22
 
16
- gem 'itslog'
17
-
18
- or to a group
19
-
20
23
  group :development, :test do
21
24
  gem 'itslog'
22
25
  end
26
+
27
+ Reference
28
+ -------------
29
+
30
+ All additional information can be found in this video: [The Log Song](http://nicktoons.nick.com/videos/clip/stimpys-big-day-log-song-1.html)
@@ -32,12 +32,12 @@ module Itslog
32
32
  extend ActiveSupport::Concern
33
33
 
34
34
  def call_with_namespace(message, *args)
35
- logger.namespace = message.split('.').last if logger
35
+ namespace = message.split('.').last if logger
36
+ logger.namespace = namespace.present? ? namespace : ''
36
37
  call_without_namespace(message, *args)
37
38
  end
38
39
 
39
40
  included do
40
- puts '~> itslog enabled'
41
41
  alias_method_chain :call, :namespace
42
42
  end
43
43
  end
@@ -1,3 +1,3 @@
1
1
  module Itslog
2
- VERSION = '0.0.1'
2
+ VERSION = '0.1.0'
3
3
  end
metadata CHANGED
@@ -1,13 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itslog
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 0
9
- - 1
10
- version: 0.0.1
4
+ prerelease:
5
+ version: 0.1.0
11
6
  platform: ruby
12
7
  authors:
13
8
  - John Thomas Marino
@@ -15,11 +10,10 @@ autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
12
 
18
- date: 2011-04-17 00:00:00 -04:00
19
- default_executable:
13
+ date: 2011-04-29 00:00:00 Z
20
14
  dependencies: []
21
15
 
22
- description: "\n `itslog` is a log formatter designed to aid development.\n\n The formatting will prepend all log statements with a colored header.\n\n [timestamp] [rails library] [normal log], example:\n 15:16:32 action_view Rendered layouts/_head.haml (8.5ms)\n "
16
+ description: "\n `itslog` is a log formatter designed to aid rails development.\n\n The formatting will prepend all log statements with a colored header and additional information about the statement.\n\n [timestamp] [rails namespace]: [normal log], example:\n\n 15:16:32 action_view: Rendered layouts/_head.haml (8.5ms)\n\n In addition to more readable logs you can tail and grep specific parts of your application. example:\n\n tail -f log/development.log | grep active_record\n "
23
17
  email: writejm@gmail.com
24
18
  executables: []
25
19
 
@@ -35,7 +29,6 @@ files:
35
29
  - lib/itslog/railtie.rb
36
30
  - lib/itslog/version.rb
37
31
  - lib/itslog.rb
38
- has_rdoc: true
39
32
  homepage: http://github.com/johmas/itslog
40
33
  licenses: []
41
34
 
@@ -49,25 +42,19 @@ required_ruby_version: !ruby/object:Gem::Requirement
49
42
  requirements:
50
43
  - - ">="
51
44
  - !ruby/object:Gem::Version
52
- hash: 3
53
- segments:
54
- - 0
55
45
  version: "0"
56
46
  required_rubygems_version: !ruby/object:Gem::Requirement
57
47
  none: false
58
48
  requirements:
59
49
  - - ">="
60
50
  - !ruby/object:Gem::Version
61
- hash: 3
62
- segments:
63
- - 0
64
51
  version: "0"
65
52
  requirements: []
66
53
 
67
54
  rubyforge_project: itslog
68
- rubygems_version: 1.3.7
55
+ rubygems_version: 1.7.2
69
56
  signing_key:
70
57
  specification_version: 3
71
- summary: itslog makes logs more useful for development
58
+ summary: itslog makes logs more useful for rails development
72
59
  test_files: []
73
60