<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
This is a documented feature of syslog-ng; I am not aware of any reason why this would be considered a bad idea. Please see <a href="https://syslog-ng.gitbooks.io/getting-started/content/chapters/chapter_5/section_2.html" id="LPNoLP463697">https://syslog-ng.gitbooks.io/getting-started/content/chapters/chapter_5/section_2.html</a> for
 more information. </div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Additionally, TextLogDestination and StructuredLogDestination are Java classes provided by syslog-ng in the syslog-ng-core.jar.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
 <br>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="PlainText">On Thu, Feb 20, 2020 at 01:55:33AM +0000, Jamal Habash wrote:<br>
> Hey All,<br>
> <br>
> I am interested in developing a Java destination for syslog-ng. I have read the documentation which states "To interface with syslog-ng, you will need to extend the TextLogDestination or StructuredLogDestination".<br>
> <br>
<br>
<br>
that sounds like a really bad idea<br>
<br>
<br>
> There is no documentation or code comments for either of these classes.<br>
> <br>
> 1) What is the intended use-case for TextLogDestination?<br>
> 2) What is the intended use-case for StructuredLogDestination?<br>
> <br>
> Additionally, as there are no comments in the code, it is unclear what the abstract methods in these classes are meant to do. For example, each class has the same abstract methods called open(), close(), isOpened(), getNameUniqOptions().<br>
> <br>
> 3) What is the purpose of these methods?<br>
> 4) When will they be invoked by syslog-ng?<br>
<br>
<br>
It seems to me it is written in C..<br>
<br>
am I wrong here?<br>
<br>
> <br>
> It is difficult to write a valid implementation without knowing the purpose of each method. Is there any documentation for this?<br>
> <br>
> Thanks in advance!<br>
> <br>
> J<br>
<br>
</div>
</span></font></div>
</body>
</html>