<feed xmlns='http://www.w3.org/2005/Atom'>
<title>libumberlog.git/t, branch libumberlog-0.2.1</title>
<subtitle>libumberlog patches for integration upstream - branches are rebased</subtitle>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/mitr/public_git/libumberlog.git/'/>
<entry>
<title>Convert the test suite to Check</title>
<updated>2012-04-28T22:52:05+00:00</updated>
<author>
<name>Gergely Nagy</name>
<email>algernon@madhouse-project.org</email>
</author>
<published>2012-04-28T22:52:05+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/mitr/public_git/libumberlog.git/commit/?id=36847dcdae8abb9239dcbcdc2446cfb7042302d0'/>
<id>36847dcdae8abb9239dcbcdc2446cfb7042302d0</id>
<content type='text'>
While assert() is a neat tool, it is not really suitable for testing,
as it gives hardly any indication on what part of the test suite
failed, and why.

For this purpose, an existing testing library, such as Check is a much
better option, so lets use that!

Signed-off-by: Gergely Nagy &lt;algernon@madhouse-project.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
While assert() is a neat tool, it is not really suitable for testing,
as it gives hardly any indication on what part of the test suite
failed, and why.

For this purpose, an existing testing library, such as Check is a much
better option, so lets use that!

Signed-off-by: Gergely Nagy &lt;algernon@madhouse-project.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Add a closelog() wrapper to clear the environment</title>
<updated>2012-04-28T16:18:32+00:00</updated>
<author>
<name>Gergely Nagy</name>
<email>algernon@madhouse-project.org</email>
</author>
<published>2012-04-28T16:18:32+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/mitr/public_git/libumberlog.git/commit/?id=8cfef10830350c565e8ee917f83b9e97016a0a62'/>
<id>8cfef10830350c565e8ee917f83b9e97016a0a62</id>
<content type='text'>
Our openlog() wrapper fills in a couple of variables, and those were
kept around even after a closelog(), and thus, affected ul_format()
calls even after a closelog().

This in turn, made one of the test cases fail, as that was relying on
the default behaviour, which was modified due to an openlog() in an
earlier test case.

We now wrap closelog() aswell, and NULL out our settings to get a
clean state, and add a test case to verify this behaviour aswell.

Signed-off-by: Gergely Nagy &lt;algernon@madhouse-project.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Our openlog() wrapper fills in a couple of variables, and those were
kept around even after a closelog(), and thus, affected ul_format()
calls even after a closelog().

This in turn, made one of the test cases fail, as that was relying on
the default behaviour, which was modified due to an openlog() in an
earlier test case.

We now wrap closelog() aswell, and NULL out our settings to get a
clean state, and add a test case to verify this behaviour aswell.

Signed-off-by: Gergely Nagy &lt;algernon@madhouse-project.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Resolve facility &amp; priority properly</title>
<updated>2012-04-20T11:14:29+00:00</updated>
<author>
<name>Gergely Nagy</name>
<email>algernon@balabit.hu</email>
</author>
<published>2012-04-20T11:14:29+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/mitr/public_git/libumberlog.git/commit/?id=5509ee80130cb781d0c88d411021a98b5fab4556'/>
<id>5509ee80130cb781d0c88d411021a98b5fab4556</id>
<content type='text'>
The priority passed to the syslog() call can contain a facility
embedded, so we need to extract it to find both the facility and the
priority.

This also means that the facility set at openlog()-time can be
overridden later, so _find_facility() has to take the priority value
into account.

This patch makes libumberlog do just the above: extract both priority
and facility from the priority passed to syslog(), and if facility is
0, use the default set at openlog()-time, if any.

Added a test case to test this expected behaviour.

Reported-by: Peter Czanik &lt;czanik@balabit.hu&gt;
Signed-off-by: Gergely Nagy &lt;algernon@balabit.hu&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The priority passed to the syslog() call can contain a facility
embedded, so we need to extract it to find both the facility and the
priority.

This also means that the facility set at openlog()-time can be
overridden later, so _find_facility() has to take the priority value
into account.

This patch makes libumberlog do just the above: extract both priority
and facility from the priority passed to syslog(), and if facility is
0, use the default set at openlog()-time, if any.

Added a test case to test this expected behaviour.

Reported-by: Peter Czanik &lt;czanik@balabit.hu&gt;
Signed-off-by: Gergely Nagy &lt;algernon@balabit.hu&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Make json-c optional.</title>
<updated>2012-04-13T11:58:36+00:00</updated>
<author>
<name>Gergely Nagy</name>
<email>algernon@balabit.hu</email>
</author>
<published>2012-04-13T11:58:36+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/mitr/public_git/libumberlog.git/commit/?id=6a88617d83a94f66825811dc0e782b1e740179d7'/>
<id>6a88617d83a94f66825811dc0e782b1e740179d7</id>
<content type='text'>
When json-c is not found, instead of failing at configure time,
continue, but disable the test suite.

Signed-off-by: Gergely Nagy &lt;algernon@balabit.hu&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When json-c is not found, instead of failing at configure time,
continue, but disable the test suite.

Signed-off-by: Gergely Nagy &lt;algernon@balabit.hu&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Implement string escaping.</title>
<updated>2012-04-13T11:14:22+00:00</updated>
<author>
<name>Gergely Nagy</name>
<email>algernon@balabit.hu</email>
</author>
<published>2012-04-13T11:14:22+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/mitr/public_git/libumberlog.git/commit/?id=fb7693f412485cebc8d4a0cc2b2ace424d60d65d'/>
<id>fb7693f412485cebc8d4a0cc2b2ace424d60d65d</id>
<content type='text'>
With this patch, both JSON keys and values will be properly escaped.

Signed-off-by: Gergely Nagy &lt;algernon@balabit.hu&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
With this patch, both JSON keys and values will be properly escaped.

Signed-off-by: Gergely Nagy &lt;algernon@balabit.hu&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>t/: Add a new performance test.</title>
<updated>2012-04-13T08:42:29+00:00</updated>
<author>
<name>Gergely Nagy</name>
<email>algernon@balabit.hu</email>
</author>
<published>2012-04-13T08:42:29+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/mitr/public_git/libumberlog.git/commit/?id=63fcf21f9a9f616880dfb9c7174b8694423a7f75'/>
<id>63fcf21f9a9f616880dfb9c7174b8694423a7f75</id>
<content type='text'>
The new test case always succeeds, it's purpose is to echo the
performance results.

Signed-off-by: Gergely Nagy &lt;algernon@balabit.hu&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The new test case always succeeds, it's purpose is to echo the
performance results.

Signed-off-by: Gergely Nagy &lt;algernon@balabit.hu&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Portability fixes</title>
<updated>2012-03-24T14:52:25+00:00</updated>
<author>
<name>Gergely Nagy</name>
<email>algernon@balabit.hu</email>
</author>
<published>2012-03-24T14:52:25+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/mitr/public_git/libumberlog.git/commit/?id=c515ced437047b459cfce6b6a34eb572558566f9'/>
<id>c515ced437047b459cfce6b6a34eb572558566f9</id>
<content type='text'>
Use _POSIX_HOST_NAME_MAX instead of HOST_NAME_MAX: both Linux and
FreeBSD have the former, but FreeBSD does not have HOST_NAME_MAX in
limits.h

Signed-off-by: Gergely Nagy &lt;algernon@balabit.hu&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use _POSIX_HOST_NAME_MAX instead of HOST_NAME_MAX: both Linux and
FreeBSD have the former, but FreeBSD does not have HOST_NAME_MAX in
limits.h

Signed-off-by: Gergely Nagy &lt;algernon@balabit.hu&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Rename the project to libumberlog</title>
<updated>2012-03-23T09:10:26+00:00</updated>
<author>
<name>Gergely Nagy</name>
<email>algernon@balabit.hu</email>
</author>
<published>2012-03-23T09:08:16+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/mitr/public_git/libumberlog.git/commit/?id=30676376a578e1ff31862abcb4780b063b0284d0'/>
<id>30676376a578e1ff31862abcb4780b063b0284d0</id>
<content type='text'>
Signed-off-by: Gergely Nagy &lt;algernon@balabit.hu&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Gergely Nagy &lt;algernon@balabit.hu&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Check (v)asprintf() return values.</title>
<updated>2012-03-22T12:39:20+00:00</updated>
<author>
<name>Gergely Nagy</name>
<email>algernon@balabit.hu</email>
</author>
<published>2012-03-22T12:39:20+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/mitr/public_git/libumberlog.git/commit/?id=1c3b587b949bbaa19010fb4530282417015df4b6'/>
<id>1c3b587b949bbaa19010fb4530282417015df4b6</id>
<content type='text'>
If (v)asprintf() returns an error, abort() away, because we can't
possibly proceed.

Signed-off-by: Gergely Nagy &lt;algernon@balabit.hu&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If (v)asprintf() returns an error, abort() away, because we can't
possibly proceed.

Signed-off-by: Gergely Nagy &lt;algernon@balabit.hu&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Add the timestamp to the JSON payload too.</title>
<updated>2012-03-21T13:23:35+00:00</updated>
<author>
<name>Gergely Nagy</name>
<email>algernon@balabit.hu</email>
</author>
<published>2012-03-21T13:23:35+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/mitr/public_git/libumberlog.git/commit/?id=b49beb4e96a317e9d279274dc13607dda978792c'/>
<id>b49beb4e96a317e9d279274dc13607dda978792c</id>
<content type='text'>
Add high-precision timestamp to the JSON payload (unless disabled).

Signed-off-by: Gergely Nagy &lt;algernon@balabit.hu&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add high-precision timestamp to the JSON payload (unless disabled).

Signed-off-by: Gergely Nagy &lt;algernon@balabit.hu&gt;
</pre>
</div>
</content>
</entry>
</feed>
