Customizing report

Wytze van der Raay wytze at nlnet.nl
Mon Jan 24 12:30:50 CET 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Laurent Marion wrote:

| I have two questions:
| How to modify the chart graphics (color, type and other)....

As far as I am aware, you cannot do this directly from Lire; currently the
only configurable parameter with respect to charts is "lr_chart_font" to
select a different font. However, since Lire invokes ploticus as a command
line utility, you can configure ploticus' behaviour through an external
configuration file. For example, to create a chart with green background,
blue text and red bars, put the following in a file:
	option: -color blue
	option: -backcolor green
	varvalue: color=red
and make this file known to ploticus through the environment variable
PLOTICUS_CONFIG:
	PLOTICUS_CONFIG=/absolute/path/to/file
	export PLOTICUS_CONFIG
before running Lire as usual.

By the way, the graph type (bars, pie, histogram etc.) *is* configured
directly within Lire, through the "charttype=" parameter in the report
description.

| How to restrict rapport to one day only :
| when you do a xml files on three days with log2report and you want to
| have a html result on only one day, how to proceed?

Uhm, de-aggregating the data ... I'm not quite sure how you could do that.
Perhaps a filter expression (as described in the Lire Developer's Manual,
Chapter 11, Lire Report Specification Markup Language) could be of some use,
but I have no experience with applying that.

Regards,
- -- wytze
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFB9Nxqqs+zhiEbbu8RAt/zAJsEsi2p2TqV3Mhd5mX9SB8jfMTVVQCfam7e
PsboZA5Zl29Uxf//j7dA0o8=
=aw6k
-----END PGP SIGNATURE-----

-- 
To UNSUBSCRIBE, email to questions-request at logreport.org with a subject of 
"unsubscribe". Trouble? Send an email with subject "help" to 
questions-request at logreport.org



More information about the Questions mailing list