<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi Jason,<br>
<br>
we've tested some of the default .NET possibilities, but I'm sure it
can be made better.<br>
<br>
I'm experimenting with this:<br>
<br>
...<br>
<sharedListeners>
<br>
<!-- Testing, 16.1.2015 -->
<br>
<add name="myListener"
type="Microsoft.VisualBasic.Logging.FileLogTraceListener,
Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"
<br>
initializeData="FileLogWriter"
<br>
location="Custom"
<br>
logFileCreationSchedule="Daily"
<br>
customLocation="logs/" baseFileName="<b>connectorserver-test</b>"
<br>
MaxFileSize="9223372036854775807"
<br>
traceOutputOptions="DateTime">
<br>
<filter type="System.Diagnostics.EventTypeFilter"
<br>
initializeData="Verbose"/>
<br>
</add>
<br>
</sharedListeners><br>
...<br>
<br>
All files are stored in logs/ subdirectory (CS must have write
permission there) and named connectorserver-test-2015-MM-DD.log<br>
<br>
A new file will be created each day on first log entry (i.e. if you
don't provision to AD for a couple of days, you will not have empty
log files for each day created). Also I don't like the log format...<br>
<br>
The section is based on some googled articles, unfortunately I can't
find that bookmark right now. I just remember that there are other
ways of rotating which require some other components (some .NET
libraries?) to be installed.<br>
<br>
Hope this helps.<br>
<br>
Regards,<br>
IVan<br>
<br>
<div class="moz-cite-prefix">On 08/25/2015 06:11 PM, Jason Everling
wrote:<br>
</div>
<blockquote
cite="mid:CAFkZXY6bNHvgYj5QM8ouCdVfEWbriw3zuq3Lq4tp4y=K16B1Gg@mail.gmail.com"
type="cite">
<div dir="ltr">What is the best way to get the system to rotate
the logs on the Connector Server?
<div><br>
</div>
<div>I noticed in midpoint the task had shutdown from a
communication error and could not figure out why until I saw
the size of the log on the server running the connector
server, it was over 1Gb causing the system to hang up.</div>
<div><br>
</div>
<div>I stopped the service and then deleted the log file then
restarted the service and resumed the task in midpoint and all
is good now.</div>
<div><br>
</div>
<div>In the future, how should this be handled? I have the
system.diagnostics configured to the bare minimum so that
logging will be reduced.<br clear="all">
<div><br>
</div>
-- <br>
<div class="gmail_signature">
<div dir="ltr">JASON</div>
</div>
</div>
</div>
<br>
<font size="2"><br>
<br>
CONFIDENTIALITY NOTICE:<br>
This e-mail together with any attachments is proprietary and
confidential; intended for only the recipient(s) named above and
may contain information that is privileged. You should not
retain, copy or use this e-mail or any attachments for any
purpose, or disclose all or any part of the contents to any
person. Any views or opinions expressed in this e-mail are those
of the author and do not represent those of the Baptist School
of Health Professions. If you have received this e-mail in
error, or are not the named recipient(s), you are hereby
notified that any review, dissemination, distribution or copying
of this communication is prohibited by the sender and to do so
might constitute a violation of the Electronic Communications
Privacy Act, 18 U.S.C. section 2510-2521. Please immediately
notify the sender and delete this e-mail and any attachments
from your computer. </font><br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Ing. Ivan Noris
Senior Identity Management Engineer & IDM Architect
evolveum.com evolveum.com/blog/
___________________________________________________
"Semper Id(e)M Vix."
</pre>
</body>
</html>