<div dir="ltr">Thanks! I will give that a try and see how it works out. I will probably also create a task that deletes anything older than a certain amount of time, depending how long I would want to keep them.<div><br></div><div>JASON</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 25, 2015 at 11:40 AM, Ivan Noris <span dir="ltr"><<a href="mailto:ivan.noris@evolveum.com" target="_blank">ivan.noris@evolveum.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div 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<div><div class="h5"><br>
<br>
<div>On 08/25/2015 06:11 PM, Jason Everling
wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div class="h5">
<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>
<div dir="ltr">JASON</div>
</div>
</div>
</div>
<br>
</div></div><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></fieldset>
<br>
<pre>_______________________________________________
midPoint mailing list
<a href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a>
<a href="http://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank">http://lists.evolveum.com/mailman/listinfo/midpoint</a><span class="HOEnZb"><font color="#888888">
</font></span></pre><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
<pre cols="72">--
Ing. Ivan Noris
Senior Identity Management Engineer & IDM Architect
<a href="http://evolveum.com" target="_blank">evolveum.com</a> <a href="http://evolveum.com/blog/" target="_blank">evolveum.com/blog/</a>
___________________________________________________
"Semper Id(e)M Vix."
</pre>
</font></span></div>
<br>_______________________________________________<br>
midPoint mailing list<br>
<a href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a><br>
<a href="http://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">http://lists.evolveum.com/mailman/listinfo/midpoint</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">JASON</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>