Writing output formats
======================

Output formats are stored in /usr/share/linda/output. Each file is a seperate
class that contains how to print what and in what format.

First you need to import output from linda so you can access the output module
itself.
Then you define a class (can be called anything, really), with output.Output
as your superclass.
Define an output(self) method that prints the variables in the format you
want:

self.type:		The Type of the printout.
self.type_char:		The shorthand one-char of the Type.
self.output_var: 	Parsed dictionary from the .desc file.
self.desc_str:		Description string, if the user has defined a different
			locale, and the .desc has a string for that locale.
self.data:		A list that contains data from the check. Is usually
			empty.
self.tag:		The Tag of the printout.

Then you need to register the class in the output registry like so:
output.register(LongOutput, 'long')

The first argument is the class name, and the second is what you want people
to have to specify after -f to use the output class.

You can also add 4 functions for printing before a file, before a group of
checks, and after both. They are:

The group checks can access the type and the level of the check with the vars
self.check_type and self.level.

group_pre_print(self)
group_post_print(self)

file_pre_print(self, file)
file_post_print(self, file)

