-
Notifications
You must be signed in to change notification settings - Fork 5
/
INSTALL
60 lines (40 loc) · 1.17 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Swiftcore Analogger 0.5
Homepage:: http://analogger.swiftcore.org
Copyright:: (C) 2007 by Kirk Haines. All Rights Reserved.
Email:: wyhaines@gmail.com
Installation
------------
To install analogger:
ruby setup.rb
The analogger executable will be installed into the ruby installation's
bindir, along with server and client libraries into the site_lib. The
rdoc documentation will also be generated.
ruby setup.rb --help
to se a full list of options.
Quickstart
----------
To start an Analogger instance, first create a configuration file:
port: 6766
host: 127.0.0.1
default_log: /var/log/weblogs/default
daemonize: true
syncinterval: 60
logs:
- service: bigapp
logfile: /var/log/bigapp
cull: true
- service:
- smallapp1
- smallapp2
logfile: /var/log/smallapps
cull: true
- service: newsletter_sender
logfile: /var/log/newsletter.log
cull: false
Then start the analogger:
/usr/bin/env analogger -c config_file
To use the client library to connect to an Analogger instance and send
logging messages to it:
require 'swiftcore/Analogger/Client'
logger = Swiftcdore::Analogger::Client.new('smallapp1','127.0.0.1','6766')
logger.log('info','This is a log message.')