Refactor log keyfile element insertion into a separate function
Please take a look at this patch. Thanks.
The differences introduced by the patch can be viewed more nicely in an IDE that has git support, I am using NetBeans.
This patch is a preparation for an efficient insertion of new notifications to a very large notification log file.
See comment 3 in bug https://bugzilla.xfce.org/show_bug.cgi?id=14865