Logback: the reliable, generic, fast and flexible logging framework.
Copyright (C) 1999-2011, QOS.ch. All rights reserved.
This program and the accompanying materials are dual-licensed under
either the terms of the Eclipse Public License v1.0 as published by
the Eclipse Foundation
or (per the licensee's choosing)
under the terms of the GNU Lesser General Public License version 2.1
as published by the Free Software Foundation.
A minimal converter which sets up the general interface for derived classes.
It also implements the functionality to chain converters in a linked list.
The convert method is responsible for extracting data from the event and
storing it for later use by the write method.
In its simplest incarnation, a convert simply appends the data extracted from
the event to the buffer passed as parameter.
buf The input buffer where data is appended
event The event from where data is extracted