Would be nice to be able to clear a) all logs b) all logs for specific account or c) all logs for specific contact/room in an account
And the implementation is ready for review, see
+_tpl_rmdir_recursively (const gchar *dir_name)
+ dir = g_dir_open (dir_name, 0, &error);
You're not reading error, so just pass NULL instead of passing error and freeing it.
+ <method name="Clear"
+ Clear all the log. This will not erase the favourite contacts.
+tpl_dbus_service_clear_entity (TplSvcLogger *logger,
+ entity = g_object_new (TPL_TYPE_ENTITY,
+ "type", type,
+ "identifier", identifier,
You're leaking entity.
Other than that looks good.
Fixed and pushed.