elogd.cfg
contains entries which define
the structure of logbooks and the behavior of elogd. The file has a simple ASCII
format. Each logbook is defined by a [<name>]
section
where <name> is the name of the logbook. The [global]
section is used for settings common to all logbooks. Each line contains a setting
name, followed by an equal sign and the value for this setting. Lines starting with
";" are treated as comments.Here is a simple example, which define two logbooks "Linux" and "PC":
[global] Logbook tabs = 1 Tab cellpadding = 2 SMTP host = mailsend.your.domaine [Linux] Theme = default Comment = General linux tips and tricks Data dir = /usr/local/elog/linux Attributes = Author, Type, Category, Subject Options Type = Routine, Software Installation, Problem Fixed, Configuration, Other Options Category = General, Hardware, Software, Network, Account, Other Options Author = Stefan, Linus, unknown Required Attributes = Author [PC] Comment = Database PC installations Data dir = /usr/local/elog/pc Attributes = Location, OS, Owner Options Location = Building1, Building2 Options OS = Linux, Windows ME, Windows 2000 Required Attributes = Location, Owner Email All = name@address, othername@otheraddress Mail Subject = Location
[global]
section:
Tab cellpadding
Logbook Tabs = 0/1
Welcome Title
<img src="welcome.gif"<
.
These images must be present in the same directory as the elodg.cfg file.
Following line is an example Welcome Title:
Welcome title = <img src="welcome.jpg"><p><font size=5 color=white>Welcome to our Elog</font>
This displays an image and a text below.
Welcome page = <file>
SMPT host
Theme
Comment
Welcome Page = <file>
<h1>Welcome to the test logbook</h1> <ul> <li><a href="?cmd=new">Enter</a> a new message <li><a href="?cmd=find">Search</a> the logbook </ul>The file has to be present in the same direcotry as the elogd.cfg file.
Submit Page = <file>
<h1>You successfully submitted a message</h1> <a href="linux">Back</a> to the logbook<p> <a href="linux?cmd=new">Enter</a> another messageThe reference "linux" in this case corresponds to the logbook name. The file has to be present in the same direcotry as the elogd.cfg file.
Message comment
This optional comment is displayed on top of the text entry field when submitting
a new message. It can contain a sentence like "Please enter your message here:".
Menu commands = <list>
This option specifies the menu commands displayed on top of the logbook page. For
certain installations, it can be useful to disable some commands. Following
commands are possible:
If this option is not present, following default is used:
Menu commands = New, Edit, Delete, Reply, Find, Last day, Last 10, Config, Help
Help URL
This URL is used for the Help button. It can point to a site-specific help page voa
http://...
or to a local file like
file://c:/tmp/config.html
. Alternatively, a HTML file can be
directly specified, which must be present in the same directory as the elogd.cfg file.
Data dir
Attributes = <list>
Options <attribute> = <list>
Options <attribute> = boolean
Required Attributes = <list>
Page title = <string>
Display search = <list>
Read password
Write password
Admin password
Write password expiration
Admin password expiration
-r
, -w
and -a
flags. To set the
write password of logbook "linux" to "test", on would enter:
elogd -w test -l linux
The read password is queried by the browser with a pop-up window and usually stays
active for the entire browser session. The write and admin passwords are stored
in cookies on the browser side and have an expiration time of 24h. After that
time, the passwords have to be re-submitted. This time can be changed with the
statement Write Password Expriation = x
or Admin
Password Expriation = x
, where x is the expiration time in
hours. It should be noted that on some systems the daylight saving time is calculated
incorrectly, which can cause time offsets of one hour between a server PC and a client
PC. In this case one hour has to be added to the expiration time.
Hosts allow = <list>
Hosts deny = <list>
123.213.
(note the trailing '.') or .mit.edu
,
or the word All
. Following rules are applied:
Email <name> = <list>
Use Email Subject = <string>
SMTP host =
entry has to be present in the [global]
section of the
configuration file. To submit an email based on an attribute, one needs the
statement Email <name> = list
where name
is one of the attribute values. Several mail addresses might be supplied,
separated by commas. Multiple Email xxx
statements might be
present in a configuration file. The statement Email All =
sends an email notification independent of the type and category. The Use
Email Subject = <string>
statement specifies the string used in the email
as the subject. The string can contain attributes in the form $<
attribute>, where <attribute> is replaced by the current value of that
attribute.
Show attachments = 0/1
This flag controls the display of attachments such as images on normal
logbook pages. For logbooks with large images, this flag can be turned off,
so that attachments are only displayed when they are clicked on. Default
is 1.
Summary on default = 0/1
If this flag is 1, the buttons "Last day" and "Last 10"
produce summary listings instead displaying full messages. In the "Find"
page, the "Summary only" check box is checked by default.
Summary lines = x
This specifies the number of text lines displayed in a summary page. Zero displays
no text at all. The default is 3.
Filtered browsing = 0/1
If this flag is 1, browsing (hitting the next/previous button) can be
filtered by individual attributes. If the checkbox next to an attribute is checked,
only messages with the same attribute value are displayed. Default is 1.
Suppress default = 0/1/2
This specifies the default state of the "Suppress Email notification" button on the
new message entry from. For installations where normally a Email notification is
not necessary, the default can be set to 1. Only if an urgent message is
entered, the users can then uncheck the suppress box. If this value is set to 2
, the suppress box is not displayed at all, so that an email notification is
always produced. The default is 0.
Display Email recipients = 0/1
If this flag is 1, the email recipients are displayed when a logbook
entry is entered which produces an email notification. Setting this flag to 0
can suppress this display, in case one does not want that users to see that
email is actually sent and to whom. The default is 1.
Email message body = 0/1
If this flag is 1, the email notification send by elog contains the
full message body in addition to the attributes. The default is 0.
theme = <dir>
option in the configuration file. The directory
contains the file theme.cfg
and a couple of images, which are used
for the title banner and the browse buttons. A default theme is contained in the
distribution. If new themes are developed by users, they can send them back to the author,
so they can be included in future releases.
Most of the options in the theme.cfg
are self-explanatory, the colors
are coded as #RRGGBB, where RR is a 8-bit hexadecimal value for the red part, GG for the
green and BB for the blue part, repectively. Since theme configuration files are re-read
at each access, the elogd daemon does not have to be restarted after a change in the
theme configuration file.
Following two images display the same logbook page using different themes: