log4r 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/INSTALL +0 -7
- data/README +3 -3
- data/Rakefile +7 -3
- data/examples/logs/simple.log +1 -0
- data/src/log4r.rb +2 -2
- metadata +31 -79
- data/bin/CVS/Entries +0 -7
- data/bin/CVS/Repository +0 -1
- data/bin/CVS/Root +0 -1
- data/bin/README +0 -8
- data/bin/devconfig.rb +0 -22
- data/bin/makedist.rb +0 -94
- data/bin/makehtml.rb +0 -71
- data/bin/makerdoc.rb +0 -30
- data/bin/prune.rb +0 -37
- data/doc/CVS/Entries +0 -5
- data/doc/CVS/Repository +0 -1
- data/doc/CVS/Root +0 -1
- data/doc/content/CVS/Entries +0 -6
- data/doc/content/CVS/Repository +0 -1
- data/doc/content/CVS/Root +0 -1
- data/doc/dev/CVS/Entries +0 -4
- data/doc/dev/CVS/Repository +0 -1
- data/doc/dev/CVS/Root +0 -1
- data/doc/images/CVS/Entries +0 -3
- data/doc/images/CVS/Repository +0 -1
- data/doc/images/CVS/Root +0 -1
- data/doc/templates/CVS/Entries +0 -2
- data/doc/templates/CVS/Repository +0 -1
- data/doc/templates/CVS/Root +0 -1
- data/examples/CVS/Entries +0 -17
- data/examples/CVS/Repository +0 -1
- data/examples/CVS/Root +0 -1
- data/src/CVS/Entries +0 -2
- data/src/CVS/Repository +0 -1
- data/src/CVS/Root +0 -1
- data/src/log4r/CVS/Entries +0 -14
- data/src/log4r/CVS/Repository +0 -1
- data/src/log4r/CVS/Root +0 -1
- data/src/log4r/formatter/CVS/Entries +0 -3
- data/src/log4r/formatter/CVS/Repository +0 -1
- data/src/log4r/formatter/CVS/Root +0 -1
- data/src/log4r/lib/CVS/Entries +0 -3
- data/src/log4r/lib/CVS/Repository +0 -1
- data/src/log4r/lib/CVS/Root +0 -1
- data/src/log4r/outputter/CVS/Entries +0 -12
- data/src/log4r/outputter/CVS/Repository +0 -1
- data/src/log4r/outputter/CVS/Root +0 -1
- data/src/log4r/rdoc/CVS/Entries +0 -11
- data/src/log4r/rdoc/CVS/Repository +0 -1
- data/src/log4r/rdoc/CVS/Root +0 -1
- data/src/tst.rb +0 -21
- data/tests/CVS/Entries +0 -11
- data/tests/CVS/Repository +0 -1
- data/tests/CVS/Root +0 -1
data/INSTALL
CHANGED
data/README
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
Log4r - A flexible logging library for Ruby
|
2
2
|
|
3
3
|
|
4
|
-
This release: 1.1.
|
5
|
-
Release date: 2009/
|
4
|
+
This release: 1.1.1
|
5
|
+
Release date: 2009/09/23
|
6
6
|
License: Ruby's
|
7
7
|
Maintainer: Colby Gutierrez-Kraybill
|
8
8
|
Contributors: Leon Torres Original Maintainer
|
@@ -88,4 +88,4 @@ code yourself. It's well documented and written in Ruby. :)
|
|
88
88
|
Also, try out the bug/request tracking system at
|
89
89
|
http://rubyforge.org/tracker/?group_id=203
|
90
90
|
|
91
|
-
Version: $Id: README,v 1.
|
91
|
+
Version: $Id: README,v 1.5 2009/09/23 21:24:02 colbygk Exp $
|
data/Rakefile
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
# $Id: Rakefile,v 1.
|
2
|
+
# $Id: Rakefile,v 1.5 2009/09/23 21:24:21 colbygk Exp $
|
3
3
|
|
4
4
|
# incorporated from Revolution Health version of log4r
|
5
5
|
|
@@ -10,12 +10,13 @@ require 'date'
|
|
10
10
|
require 'fileutils'
|
11
11
|
|
12
12
|
GEM = "log4r"
|
13
|
-
GEM_VERSION = "1.1.
|
13
|
+
GEM_VERSION = "1.1.1"
|
14
14
|
AUTHOR = "Colby Gutierrez-Kraybill"
|
15
15
|
EMAIL = "colby@astro.berkeley.edu"
|
16
16
|
HOMEPAGE = %q{http://log4r.rubyforge.org}
|
17
17
|
SUMMARY = "Log4r, logging framework for ruby"
|
18
18
|
DESCRIPTION = "See also: http://logging.apache.org/log4j"
|
19
|
+
DIRS = [ "doc/**/*", "examples/**/*", "src/**/*", "tests/**/*" ]
|
19
20
|
|
20
21
|
spec = spec = Gem::Specification.new do |s|
|
21
22
|
s.name = GEM
|
@@ -34,7 +35,10 @@ spec = spec = Gem::Specification.new do |s|
|
|
34
35
|
# s.add_dependency "foo"
|
35
36
|
|
36
37
|
s.require_path = 'src'
|
37
|
-
s.files = %w(LICENSE LICENSE.LGPLv3 README INSTALL Rakefile TODO)
|
38
|
+
s.files = %w(LICENSE LICENSE.LGPLv3 README INSTALL Rakefile TODO)
|
39
|
+
s.files = s.files + DIRS.collect do |dir|
|
40
|
+
Dir.glob( dir )
|
41
|
+
end.flatten.delete_if { |f| f.include?("CVS") }
|
38
42
|
end
|
39
43
|
|
40
44
|
Rake::GemPackageTask.new(spec) do |pkg|
|
@@ -0,0 +1 @@
|
|
1
|
+
FATAL simpleconf: kaboom!
|
data/src/log4r.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
# == Other Info
|
4
4
|
#
|
5
5
|
# Author:: Leon Torres
|
6
|
-
# Version:: $Id: log4r.rb,v 1.
|
6
|
+
# Version:: $Id: log4r.rb,v 1.3 2009/09/23 21:25:18 colbygk Exp $
|
7
7
|
|
8
8
|
require "log4r/outputter/fileoutputter"
|
9
9
|
require "log4r/outputter/consoleoutputters"
|
@@ -13,5 +13,5 @@ require "log4r/formatter/patternformatter"
|
|
13
13
|
require "log4r/loggerfactory"
|
14
14
|
|
15
15
|
module Log4r
|
16
|
-
Log4rVersion = [1, 1,
|
16
|
+
Log4rVersion = [1, 1, 1].join '.'
|
17
17
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: log4r
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Colby Gutierrez-Kraybill
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-09-
|
12
|
+
date: 2009-09-23 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -30,23 +30,40 @@ files:
|
|
30
30
|
- INSTALL
|
31
31
|
- Rakefile
|
32
32
|
- TODO
|
33
|
-
-
|
34
|
-
-
|
35
|
-
-
|
33
|
+
- doc/content/contact.html
|
34
|
+
- doc/content/contribute.html
|
35
|
+
- doc/content/index.html
|
36
|
+
- doc/content/license.html
|
37
|
+
- doc/content/manual.html
|
38
|
+
- doc/dev/checklist
|
39
|
+
- doc/dev/README.developers
|
40
|
+
- doc/dev/things-to-do
|
41
|
+
- doc/images/log4r-logo.png
|
42
|
+
- doc/images/logo2.png
|
43
|
+
- doc/log4r.css
|
44
|
+
- doc/templates/main.html
|
45
|
+
- examples/customlevels.rb
|
46
|
+
- examples/fileroll.rb
|
47
|
+
- examples/log4r_yaml.yaml
|
48
|
+
- examples/logclient.rb
|
49
|
+
- examples/logs/simple.log
|
50
|
+
- examples/logserver.rb
|
51
|
+
- examples/moderate.xml
|
52
|
+
- examples/moderateconfig.rb
|
53
|
+
- examples/myformatter.rb
|
54
|
+
- examples/outofthebox.rb
|
55
|
+
- examples/README
|
56
|
+
- examples/rrconfig.xml
|
57
|
+
- examples/rrsetup.rb
|
58
|
+
- examples/simpleconfig.rb
|
59
|
+
- examples/syslogcustom.rb
|
60
|
+
- examples/xmlconfig.rb
|
61
|
+
- examples/yaml.rb
|
36
62
|
- src/log4r/base.rb
|
37
63
|
- src/log4r/config.rb
|
38
64
|
- src/log4r/configurator.rb
|
39
|
-
- src/log4r/CVS/Entries
|
40
|
-
- src/log4r/CVS/Repository
|
41
|
-
- src/log4r/CVS/Root
|
42
|
-
- src/log4r/formatter/CVS/Entries
|
43
|
-
- src/log4r/formatter/CVS/Repository
|
44
|
-
- src/log4r/formatter/CVS/Root
|
45
65
|
- src/log4r/formatter/formatter.rb
|
46
66
|
- src/log4r/formatter/patternformatter.rb
|
47
|
-
- src/log4r/lib/CVS/Entries
|
48
|
-
- src/log4r/lib/CVS/Repository
|
49
|
-
- src/log4r/lib/CVS/Root
|
50
67
|
- src/log4r/lib/drbloader.rb
|
51
68
|
- src/log4r/lib/xmlloader.rb
|
52
69
|
- src/log4r/logevent.rb
|
@@ -54,9 +71,6 @@ files:
|
|
54
71
|
- src/log4r/loggerfactory.rb
|
55
72
|
- src/log4r/logserver.rb
|
56
73
|
- src/log4r/outputter/consoleoutputters.rb
|
57
|
-
- src/log4r/outputter/CVS/Entries
|
58
|
-
- src/log4r/outputter/CVS/Repository
|
59
|
-
- src/log4r/outputter/CVS/Root
|
60
74
|
- src/log4r/outputter/datefileoutputter.rb
|
61
75
|
- src/log4r/outputter/emailoutputter.rb
|
62
76
|
- src/log4r/outputter/fileoutputter.rb
|
@@ -68,9 +82,6 @@ files:
|
|
68
82
|
- src/log4r/outputter/staticoutputter.rb
|
69
83
|
- src/log4r/outputter/syslogoutputter.rb
|
70
84
|
- src/log4r/rdoc/configurator
|
71
|
-
- src/log4r/rdoc/CVS/Entries
|
72
|
-
- src/log4r/rdoc/CVS/Repository
|
73
|
-
- src/log4r/rdoc/CVS/Root
|
74
85
|
- src/log4r/rdoc/emailoutputter
|
75
86
|
- src/log4r/rdoc/formatter
|
76
87
|
- src/log4r/rdoc/log4r
|
@@ -84,29 +95,6 @@ files:
|
|
84
95
|
- src/log4r/staticlogger.rb
|
85
96
|
- src/log4r/yamlconfigurator.rb
|
86
97
|
- src/log4r.rb
|
87
|
-
- src/tst.rb
|
88
|
-
- examples/customlevels.rb
|
89
|
-
- examples/CVS/Entries
|
90
|
-
- examples/CVS/Repository
|
91
|
-
- examples/CVS/Root
|
92
|
-
- examples/fileroll.rb
|
93
|
-
- examples/log4r_yaml.yaml
|
94
|
-
- examples/logclient.rb
|
95
|
-
- examples/logserver.rb
|
96
|
-
- examples/moderate.xml
|
97
|
-
- examples/moderateconfig.rb
|
98
|
-
- examples/myformatter.rb
|
99
|
-
- examples/outofthebox.rb
|
100
|
-
- examples/README
|
101
|
-
- examples/rrconfig.xml
|
102
|
-
- examples/rrsetup.rb
|
103
|
-
- examples/simpleconfig.rb
|
104
|
-
- examples/syslogcustom.rb
|
105
|
-
- examples/xmlconfig.rb
|
106
|
-
- examples/yaml.rb
|
107
|
-
- tests/CVS/Entries
|
108
|
-
- tests/CVS/Repository
|
109
|
-
- tests/CVS/Root
|
110
98
|
- tests/README
|
111
99
|
- tests/testall.rb
|
112
100
|
- tests/testbase.rb
|
@@ -117,42 +105,6 @@ files:
|
|
117
105
|
- tests/testoutputter.rb
|
118
106
|
- tests/testpatternformatter.rb
|
119
107
|
- tests/testxmlconf.rb
|
120
|
-
- doc/content/contact.html
|
121
|
-
- doc/content/contribute.html
|
122
|
-
- doc/content/CVS/Entries
|
123
|
-
- doc/content/CVS/Repository
|
124
|
-
- doc/content/CVS/Root
|
125
|
-
- doc/content/index.html
|
126
|
-
- doc/content/license.html
|
127
|
-
- doc/content/manual.html
|
128
|
-
- doc/CVS/Entries
|
129
|
-
- doc/CVS/Repository
|
130
|
-
- doc/CVS/Root
|
131
|
-
- doc/dev/checklist
|
132
|
-
- doc/dev/CVS/Entries
|
133
|
-
- doc/dev/CVS/Repository
|
134
|
-
- doc/dev/CVS/Root
|
135
|
-
- doc/dev/README.developers
|
136
|
-
- doc/dev/things-to-do
|
137
|
-
- doc/images/CVS/Entries
|
138
|
-
- doc/images/CVS/Repository
|
139
|
-
- doc/images/CVS/Root
|
140
|
-
- doc/images/log4r-logo.png
|
141
|
-
- doc/images/logo2.png
|
142
|
-
- doc/log4r.css
|
143
|
-
- doc/templates/CVS/Entries
|
144
|
-
- doc/templates/CVS/Repository
|
145
|
-
- doc/templates/CVS/Root
|
146
|
-
- doc/templates/main.html
|
147
|
-
- bin/CVS/Entries
|
148
|
-
- bin/CVS/Repository
|
149
|
-
- bin/CVS/Root
|
150
|
-
- bin/devconfig.rb
|
151
|
-
- bin/makedist.rb
|
152
|
-
- bin/makehtml.rb
|
153
|
-
- bin/makerdoc.rb
|
154
|
-
- bin/prune.rb
|
155
|
-
- bin/README
|
156
108
|
has_rdoc: true
|
157
109
|
homepage: http://log4r.rubyforge.org
|
158
110
|
licenses: []
|
data/bin/CVS/Entries
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
/README/1.1.1.1/Fri Mar 19 03:30:59 2004//
|
2
|
-
/devconfig.rb/1.1.1.1/Fri Mar 19 03:30:59 2004//
|
3
|
-
/makedist.rb/1.1.1.1/Fri Mar 19 03:30:59 2004//
|
4
|
-
/makehtml.rb/1.1.1.1/Fri Mar 19 03:30:59 2004//
|
5
|
-
/makerdoc.rb/1.1.1.1/Fri Mar 19 03:30:59 2004//
|
6
|
-
/prune.rb/1.1.1.1/Fri Mar 19 03:30:59 2004//
|
7
|
-
D
|
data/bin/CVS/Repository
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
log4r/bin
|
data/bin/CVS/Root
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
:ext:colbygk@rubyforge.org:/var/cvs/log4r
|
data/bin/README
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
How to build a release using these scripts:
|
2
|
-
|
3
|
-
1. When running a script, be in bin/
|
4
|
-
2. Edit devconfig.rb to match your setup
|
5
|
-
3. Run each script without arguments to see how it's used
|
6
|
-
4. 'ruby makedist.rb <version>' to build a distribution
|
7
|
-
|
8
|
-
These files work only on unix.
|
data/bin/devconfig.rb
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
# This is the developer's config file. Modify for your system.
|
2
|
-
|
3
|
-
# when testing, the CVS release tag is not used, allowing tuning of package
|
4
|
-
$test = true # set to false when final build is to be done
|
5
|
-
# cvs root (-d flag) to use -- don't forget to log in first!
|
6
|
-
$cvsroot = "-d:ext:fando@rubyforge.org:/var/cvs/log4r"
|
7
|
-
# prepdir is where the build process puts working files
|
8
|
-
$prepdir = '/home/cepheus/projects/prep'
|
9
|
-
# releasedir is where the final tarballs are put
|
10
|
-
$releasedir = '/home/cepheus/projects/releases'
|
11
|
-
# quiet = true sends most output to /dev/null
|
12
|
-
$quiet = false
|
13
|
-
|
14
|
-
# These are for removing unneeded developer files from the cvs co
|
15
|
-
|
16
|
-
# delete these directories from toplevel (except bin!)
|
17
|
-
$deletedirs = %w{
|
18
|
-
doc/content doc/templates doc/dev
|
19
|
-
}
|
20
|
-
# delete these files (needs path from toplevel)
|
21
|
-
$deletefiles = %w{
|
22
|
-
}
|
data/bin/makedist.rb
DELETED
@@ -1,94 +0,0 @@
|
|
1
|
-
#!/usr/bin/ruby
|
2
|
-
#
|
3
|
-
# Run this file to prepare a distribution. Make sure the variables in
|
4
|
-
# devconfig.rb reflects your setup.
|
5
|
-
#
|
6
|
-
# Run from the bin directory and specify the version number as the first
|
7
|
-
# and only argument
|
8
|
-
|
9
|
-
require 'ftools'
|
10
|
-
require 'devconfig'
|
11
|
-
|
12
|
-
$cvsname = 'log4r' # name of log4r module, shouldn't be changed
|
13
|
-
|
14
|
-
# read version from input
|
15
|
-
if ARGV.size == 0
|
16
|
-
puts "Usage: makedist.rb <version>"
|
17
|
-
exit
|
18
|
-
end
|
19
|
-
|
20
|
-
$version = ARGV[0].split(".")
|
21
|
-
puts "makedist.rb: Building Log4r distribution #{$version.join '.'}"
|
22
|
-
|
23
|
-
##### Rest is standard package config
|
24
|
-
|
25
|
-
$dotver = $version.join '.'
|
26
|
-
$dashver = $version.join '-'
|
27
|
-
|
28
|
-
$package = $cvsname + '-' + $dotver
|
29
|
-
$packagedash = $cvsname + '-' + $dashver
|
30
|
-
$tarball = $package + '.tgz'
|
31
|
-
$zipfile = $packagedash + '.zip'
|
32
|
-
$docball = $cvsname + '-doc-' + $dotver + '.tgz'
|
33
|
-
$projdir = $prepdir + "/" + $package
|
34
|
-
|
35
|
-
##### Start program
|
36
|
-
|
37
|
-
# try the dirs out and die if they don't exist
|
38
|
-
unless File.directory? $prepdir
|
39
|
-
raise TypeError, "#{prepdir} is not a dir."
|
40
|
-
end
|
41
|
-
unless File.directory? $releasedir
|
42
|
-
raise TypeError, "#{releasedir} is not a dir."
|
43
|
-
end
|
44
|
-
|
45
|
-
# system commands
|
46
|
-
def run(cmd)
|
47
|
-
unless system cmd + ($quiet ? "> /dev/null 2>&1" : "")
|
48
|
-
raise RuntimeError, "unable to finish '#{cmd}'", caller
|
49
|
-
exit
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
|
-
puts "makedist.rb: checking out #{$cvsname}"
|
54
|
-
Dir.chdir $prepdir
|
55
|
-
# remove any previous instance of auto build
|
56
|
-
run "rm -rf #{$package}"
|
57
|
-
|
58
|
-
# check out the latest if testing, otherwise check out the cvstag version
|
59
|
-
system "cvs #{$cvsroot} co -d #{$package} #{$cvsname}"
|
60
|
-
|
61
|
-
Dir.chdir $package + "/bin"
|
62
|
-
|
63
|
-
# Now run each of the other files in bin to build documents and prune
|
64
|
-
# the cvs of junk for release
|
65
|
-
puts "makedist.rb: running makehtml.rb"
|
66
|
-
run "ruby makehtml.rb #{$dotver} #{$projdir}/doc"
|
67
|
-
puts "makedist.rb: runing prune.rb"
|
68
|
-
run "ruby prune.rb #{$projdir}"
|
69
|
-
puts "makedist.rb: running makerdoc.rb"
|
70
|
-
run "ruby makerdoc.rb #{$dotver} #{$projdir}/src #{$projdir}/doc"
|
71
|
-
puts "makedist.rb: removing #{$projdir}/bin"
|
72
|
-
run "rm -rf #{$projdir}/bin"
|
73
|
-
|
74
|
-
### Release is ready, so zip it up
|
75
|
-
|
76
|
-
Dir.chdir $prepdir
|
77
|
-
|
78
|
-
puts "makedist.rb: making tarball"
|
79
|
-
run "tar -czf #{$tarball} #{$package}"
|
80
|
-
puts "makedist.rb: making zipfile"
|
81
|
-
run "zip -r #{$zipfile} #{$package}"
|
82
|
-
puts "makedist.rb: making documentation tarball"
|
83
|
-
run "tar -czvf #{$docball} #{$package}/doc"
|
84
|
-
|
85
|
-
puts "makedist.rb: moving results to #{$releasedir}"
|
86
|
-
File.mv $tarball, $releasedir
|
87
|
-
File.mv $zipfile, $releasedir
|
88
|
-
File.mv $docball, $releasedir
|
89
|
-
|
90
|
-
# make gemfile last
|
91
|
-
Dir.chdir $package
|
92
|
-
puts "makedist.rb: building gemfile in #{$releasedir}"
|
93
|
-
run "ruby log4r.gemspec"
|
94
|
-
File.mv $package + ".gem", $releasedir
|
data/bin/makehtml.rb
DELETED
@@ -1,71 +0,0 @@
|
|
1
|
-
# Builds the html. Can be called independently
|
2
|
-
# For each page in ../doc/content, build the corresponding page
|
3
|
-
# using template from ../doc/templates
|
4
|
-
|
5
|
-
if ARGV.size == 0
|
6
|
-
puts "Usage: makehtml.rb <version> [path-to-docs]"
|
7
|
-
exit
|
8
|
-
end
|
9
|
-
Version = ARGV[0]
|
10
|
-
|
11
|
-
dir = (ARGV[1] or ".")
|
12
|
-
Targetdir = dir.chomp("/")
|
13
|
-
|
14
|
-
# paranoid validation
|
15
|
-
if not FileTest.directory? Targetdir
|
16
|
-
puts "First argument must be path to doc directory"
|
17
|
-
exit
|
18
|
-
end
|
19
|
-
if not FileTest.directory? File.join(Targetdir, "templates")
|
20
|
-
puts "Can't find doc/templates!"
|
21
|
-
exit
|
22
|
-
end
|
23
|
-
if not FileTest.directory? File.join(Targetdir, "content")
|
24
|
-
puts "Can't find doc/content!"
|
25
|
-
exit
|
26
|
-
end
|
27
|
-
|
28
|
-
Templates = Hash.new
|
29
|
-
|
30
|
-
def load(fname)
|
31
|
-
str = ""
|
32
|
-
IO.foreach(fname) {|line|
|
33
|
-
str += line
|
34
|
-
}
|
35
|
-
Templates[fname] = str
|
36
|
-
end
|
37
|
-
|
38
|
-
def parse(fname)
|
39
|
-
title, template, id, cont = nil, nil, nil, ""
|
40
|
-
IO.foreach(fname) {|line|
|
41
|
-
if title.nil? and line =~ /^Title:(.*)/
|
42
|
-
title = "<title>" + ($1).chomp.strip + "</title>"
|
43
|
-
elsif template.nil? and line =~ /^Template:\s*(\S+\.html)/
|
44
|
-
template = $1
|
45
|
-
elsif id.nil? and line=~ /^Id:(.*)/
|
46
|
-
id = $1
|
47
|
-
else
|
48
|
-
cont += line
|
49
|
-
end
|
50
|
-
}
|
51
|
-
temp = Templates[template].clone
|
52
|
-
temp.sub!("<!-- TITLE -->", title)
|
53
|
-
temp.sub!("<!-- CVSID -->", id)
|
54
|
-
# join the content with the template
|
55
|
-
temp.sub!("<!-- CONTENT -->", cont)
|
56
|
-
# replaces #{version} everywhere with Version
|
57
|
-
temp.gsub!('#{version}', Version)
|
58
|
-
out = File.new("../" + fname, "w+")
|
59
|
-
out.print temp
|
60
|
-
out.flush
|
61
|
-
out.close
|
62
|
-
end
|
63
|
-
|
64
|
-
Dir.chdir(File.join(Targetdir, "templates"))
|
65
|
-
Dir.foreach(".") {|fname|
|
66
|
-
load(fname) if fname =~ /html$/
|
67
|
-
}
|
68
|
-
Dir.chdir("../content")
|
69
|
-
Dir.foreach(".") {|fname|
|
70
|
-
parse(fname) if fname =~ /html$/
|
71
|
-
}
|
data/bin/makerdoc.rb
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
if ARGV.size == 0
|
2
|
-
puts "Usage: makerdoc.rb <version> [path-to-log4r.rb] [path-to-docs]"
|
3
|
-
exit
|
4
|
-
end
|
5
|
-
|
6
|
-
Version = ARGV[0]
|
7
|
-
Src = (ARGV[1] or ".").chomp("/")
|
8
|
-
Docs = File.join((ARGV[2] or ".").chomp("/"), "rdoc")
|
9
|
-
|
10
|
-
file = File.join(Src, "log4r.rb")
|
11
|
-
if not FileTest.exist? file
|
12
|
-
puts "Can't find log4r.rb in #{Src}!"
|
13
|
-
exit
|
14
|
-
end
|
15
|
-
|
16
|
-
def run(cmd)
|
17
|
-
unless system cmd
|
18
|
-
raise RuntimeError, "unable to finish '#{cmd}'", caller
|
19
|
-
exit
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
title = "#{Version} Log4r API"
|
24
|
-
run "cd #{Src}; rdoc --op #{Docs} --template kilmer --main log4r.rb --title '#{title}'"
|
25
|
-
|
26
|
-
# sub the version into the log4r_rb.html file
|
27
|
-
html = IO.readlines(Docs+"/files/log4r_rb.html")
|
28
|
-
f = File.open(Docs+"/files/log4r_rb.html", "w")
|
29
|
-
f.write((html.join).gsub!('#{version}', Version))
|
30
|
-
f.close
|
data/bin/prune.rb
DELETED
@@ -1,37 +0,0 @@
|
|
1
|
-
# Cleans up a CVS co of log4r for distribution
|
2
|
-
|
3
|
-
require 'ftools'
|
4
|
-
require 'devconfig'
|
5
|
-
|
6
|
-
if ARGV.size != 1
|
7
|
-
puts "Usage: prune.rb <projectdir>"
|
8
|
-
exit
|
9
|
-
end
|
10
|
-
|
11
|
-
$projhome = (ARGV[0] or ".")
|
12
|
-
$echo = nil # change to "echo" if need to debug, otherwise nil
|
13
|
-
|
14
|
-
# recursively delete any such directory or file with rm -rf
|
15
|
-
recursedel = %w{ CVS }
|
16
|
-
# some dirs aren't checked out with -r, so create them
|
17
|
-
mkdirs = %w{ tests/logs examples/logs }
|
18
|
-
|
19
|
-
def run(cmd)
|
20
|
-
unless system cmd
|
21
|
-
raise RuntimeError, "unable to finish '#{cmd}'", caller
|
22
|
-
exit
|
23
|
-
end
|
24
|
-
end
|
25
|
-
|
26
|
-
Dir.chdir $projhome
|
27
|
-
|
28
|
-
for dir in recursedel
|
29
|
-
run "find . -name #{dir} -exec #{$echo} rm -rf {} \\; -prune"
|
30
|
-
end
|
31
|
-
for dir in $deletedirs
|
32
|
-
run "#{$echo} rm -rf #{dir}"
|
33
|
-
end
|
34
|
-
for file in $deletefiles
|
35
|
-
run "#{$echo} rm -f #{file}"
|
36
|
-
end
|
37
|
-
File.makedirs *mkdirs
|
data/doc/CVS/Entries
DELETED
data/doc/CVS/Repository
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
log4r/doc
|
data/doc/CVS/Root
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
:ext:colbygk@rubyforge.org:/var/cvs/log4r
|
data/doc/content/CVS/Entries
DELETED
data/doc/content/CVS/Repository
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
log4r/doc/content
|
data/doc/content/CVS/Root
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
:ext:colbygk@rubyforge.org:/var/cvs/log4r
|
data/doc/dev/CVS/Entries
DELETED
data/doc/dev/CVS/Repository
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
log4r/doc/dev
|
data/doc/dev/CVS/Root
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
:ext:colbygk@rubyforge.org:/var/cvs/log4r
|
data/doc/images/CVS/Entries
DELETED
data/doc/images/CVS/Repository
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
log4r/doc/images
|
data/doc/images/CVS/Root
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
:ext:colbygk@rubyforge.org:/var/cvs/log4r
|
data/doc/templates/CVS/Entries
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
log4r/doc/templates
|
data/doc/templates/CVS/Root
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
:ext:colbygk@rubyforge.org:/var/cvs/log4r
|
data/examples/CVS/Entries
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
/README/1.1.1.1/Fri Mar 19 03:31:05 2004//
|
2
|
-
/customlevels.rb/1.1.1.1/Fri Mar 19 03:31:05 2004//
|
3
|
-
/fileroll.rb/1.1.1.1/Fri Mar 19 03:31:05 2004//
|
4
|
-
/log4r_yaml.yaml/1.1.1.1/Fri Mar 19 03:31:05 2004//
|
5
|
-
/logclient.rb/1.1.1.1/Fri Mar 19 03:31:05 2004//
|
6
|
-
/logserver.rb/1.1.1.1/Fri Mar 19 03:31:05 2004//
|
7
|
-
/moderate.xml/1.1.1.1/Fri Mar 19 03:31:05 2004//
|
8
|
-
/moderateconfig.rb/1.1.1.1/Fri Mar 19 03:31:05 2004//
|
9
|
-
/myformatter.rb/1.1.1.1/Fri Mar 19 03:31:05 2004//
|
10
|
-
/outofthebox.rb/1.1.1.1/Fri Mar 19 03:31:05 2004//
|
11
|
-
/rrconfig.xml/1.1.1.1/Fri Mar 19 03:31:06 2004//
|
12
|
-
/rrsetup.rb/1.1.1.1/Fri Mar 19 03:31:06 2004//
|
13
|
-
/simpleconfig.rb/1.1.1.1/Fri Mar 19 03:31:06 2004//
|
14
|
-
/xmlconfig.rb/1.1.1.1/Fri Mar 19 03:31:06 2004//
|
15
|
-
/yaml.rb/1.1.1.1/Fri Mar 19 03:31:06 2004//
|
16
|
-
/syslogcustom.rb/1.1/Wed Sep 23 06:09:17 2009//
|
17
|
-
D
|
data/examples/CVS/Repository
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
log4r/examples
|
data/examples/CVS/Root
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
:ext:colbygk@rubyforge.org:/var/cvs/log4r
|
data/src/CVS/Entries
DELETED
data/src/CVS/Repository
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
log4r/src
|
data/src/CVS/Root
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
:ext:colbygk@rubyforge.org:/var/cvs/log4r
|
data/src/log4r/CVS/Entries
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
/base.rb/1.1.1.1/Fri Mar 19 03:31:06 2004//
|
2
|
-
/config.rb/1.1.1.1/Fri Mar 19 03:31:06 2004//
|
3
|
-
/configurator.rb/1.1.1.1/Fri Mar 19 03:31:06 2004//
|
4
|
-
/logevent.rb/1.1.1.1/Fri Mar 19 03:31:06 2004//
|
5
|
-
/logger.rb/1.1.1.1/Fri Mar 19 03:31:07 2004//
|
6
|
-
/loggerfactory.rb/1.1.1.1/Fri Mar 19 03:31:07 2004//
|
7
|
-
/logserver.rb/1.1.1.1/Fri Mar 19 03:31:07 2004//
|
8
|
-
/repository.rb/1.1.1.1/Fri Mar 19 03:31:07 2004//
|
9
|
-
/staticlogger.rb/1.1.1.1/Fri Mar 19 03:31:07 2004//
|
10
|
-
/yamlconfigurator.rb/1.1.1.1/Fri Mar 19 03:31:08 2004//
|
11
|
-
D/formatter////
|
12
|
-
D/lib////
|
13
|
-
D/outputter////
|
14
|
-
D/rdoc////
|
data/src/log4r/CVS/Repository
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
log4r/src/log4r
|
data/src/log4r/CVS/Root
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
:ext:colbygk@rubyforge.org:/var/cvs/log4r
|
@@ -1 +0,0 @@
|
|
1
|
-
log4r/src/log4r/formatter
|
@@ -1 +0,0 @@
|
|
1
|
-
:ext:colbygk@rubyforge.org:/var/cvs/log4r
|
data/src/log4r/lib/CVS/Entries
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
log4r/src/log4r/lib
|
data/src/log4r/lib/CVS/Root
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
:ext:colbygk@rubyforge.org:/var/cvs/log4r
|
@@ -1,12 +0,0 @@
|
|
1
|
-
/consoleoutputters.rb/1.1.1.1/Fri Mar 19 03:31:09 2004//
|
2
|
-
/datefileoutputter.rb/1.1.1.1/Fri Mar 19 03:31:09 2004//
|
3
|
-
/emailoutputter.rb/1.2/Sat Sep 19 05:08:44 2009//
|
4
|
-
/fileoutputter.rb/1.1.1.1/Fri Mar 19 03:31:09 2004//
|
5
|
-
/iooutputter.rb/1.1.1.1/Fri Mar 19 03:31:09 2004//
|
6
|
-
/outputterfactory.rb/1.1.1.1/Fri Mar 19 03:31:09 2004//
|
7
|
-
/remoteoutputter.rb/1.1.1.1/Fri Mar 19 03:31:09 2004//
|
8
|
-
/rollingfileoutputter.rb/1.1.1.1/Fri Mar 19 03:31:10 2004//
|
9
|
-
/staticoutputter.rb/1.1.1.1/Fri Mar 19 03:31:10 2004//
|
10
|
-
/outputter.rb/1.1.1.1/Wed Sep 23 03:37:53 2009//
|
11
|
-
/syslogoutputter.rb/1.3/Wed Sep 23 06:20:19 2009//
|
12
|
-
D
|
@@ -1 +0,0 @@
|
|
1
|
-
log4r/src/log4r/outputter
|
@@ -1 +0,0 @@
|
|
1
|
-
:ext:colbygk@rubyforge.org:/var/cvs/log4r
|
data/src/log4r/rdoc/CVS/Entries
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
/configurator/1.1.1.1/Fri Mar 19 03:31:11 2004//
|
2
|
-
/emailoutputter/1.1.1.1/Fri Mar 19 03:31:11 2004//
|
3
|
-
/formatter/1.1.1.1/Fri Mar 19 03:31:11 2004//
|
4
|
-
/log4r/1.1.1.1/Fri Mar 19 03:31:11 2004//
|
5
|
-
/logger/1.1.1.1/Fri Mar 19 03:31:12 2004//
|
6
|
-
/logserver/1.1.1.1/Fri Mar 19 03:31:12 2004//
|
7
|
-
/outputter/1.1.1.1/Fri Mar 19 03:31:12 2004//
|
8
|
-
/patternformatter/1.1.1.1/Fri Mar 19 03:31:12 2004//
|
9
|
-
/syslogoutputter/1.1.1.1/Fri Mar 19 03:31:12 2004//
|
10
|
-
/yamlconfigurator/1.1.1.1/Fri Mar 19 03:31:12 2004//
|
11
|
-
D
|
@@ -1 +0,0 @@
|
|
1
|
-
log4r/src/log4r/rdoc
|
data/src/log4r/rdoc/CVS/Root
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
:ext:colbygk@rubyforge.org:/var/cvs/log4r
|
data/src/tst.rb
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
require 'log4r'
|
2
|
-
require 'log4r/configurator'
|
3
|
-
require 'log4r/formatter/patternformatter'
|
4
|
-
require 'log4r/outputter/syslogoutputter'
|
5
|
-
require 'syslog'
|
6
|
-
include Log4r
|
7
|
-
include Syslog::Constants
|
8
|
-
#lgr=Log4r::Logger.new( 'ObsLog' )
|
9
|
-
##slgr=Log4r::SyslogOutputter.new( 'obscntlsh', { :logopt => LOG_CONS | LOG_PID | LOG_PERROR, :facility => LOG_LOCAL7 } )
|
10
|
-
#slgr=Outputter.stdout
|
11
|
-
#lgr.add(slgr)
|
12
|
-
#slgr.formatter=PatternFormatter.new( :pattern => 'ATA: {%d} {%l} {%C} {%m}', :date_method => 'usec' )
|
13
|
-
#lgr.info "test"
|
14
|
-
|
15
|
-
|
16
|
-
lgr2=Log4r::Logger.new( 'ObsLog' )
|
17
|
-
pfmt=PatternFormatter.new( :pattern => 'ATA: {%d} {%l} {%C} {%m}', :date_method => 'usec' )
|
18
|
-
slgr2=Log4r::SyslogOutputter.new( 'obscntlsh', { :logopt => LOG_CONS | LOG_PID | LOG_PERROR, :facility => LOG_LOCAL7, :formatter => pfmt } )
|
19
|
-
lgr2.add(slgr2)
|
20
|
-
lgr2.info "test"
|
21
|
-
|
data/tests/CVS/Entries
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
/README/1.1.1.1/Fri Mar 19 03:31:13 2004//
|
2
|
-
/testall.rb/1.1.1.1/Fri Mar 19 03:31:12 2004//
|
3
|
-
/testbase.rb/1.1.1.1/Fri Mar 19 03:31:12 2004//
|
4
|
-
/testconf.xml/1.1.1.1/Fri Mar 19 03:31:13 2004//
|
5
|
-
/testcustom.rb/1.1.1.1/Fri Mar 19 03:31:12 2004//
|
6
|
-
/testformatter.rb/1.1.1.1/Fri Mar 19 03:31:12 2004//
|
7
|
-
/testlogger.rb/1.1.1.1/Fri Mar 19 03:31:13 2004//
|
8
|
-
/testoutputter.rb/1.1.1.1/Fri Mar 19 03:31:13 2004//
|
9
|
-
/testpatternformatter.rb/1.1.1.1/Fri Mar 19 03:31:13 2004//
|
10
|
-
/testxmlconf.rb/1.1.1.1/Fri Mar 19 03:31:13 2004//
|
11
|
-
D
|
data/tests/CVS/Repository
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
log4r/tests
|
data/tests/CVS/Root
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
:ext:colbygk@rubyforge.org:/var/cvs/log4r
|