I'm planning to disable to logging on publish of nodes as i've got a scheduler that update nodes and it's filling up the umbracolog tables.
I thought of excluding this only on the specific nodes but can't find anything.
I'm on umbraco 7.4.3 and i've found the below settings within umbracosettings.config which i've tried but it's still saving the publish logs into the table. Any idea?
Thanks
<logging>
<enableLogging>true</enableLogging>
<enableAsyncLogging>true</enableAsyncLogging>
<disabledLogTypes>
<logTypeAlias>publish</logTypeAlias>
</disabledLogTypes>
<!-- You can add your own logging tool by implementing the umbraco.BusinessLogic.Interfaces.ILog interface and add the reference here -->
<!-- The external logger can also act as the audit trail storage by setting the logAuditTrail attribute to true -->
<!--<externalLogger assembly="~/bin/assemblyFileName.dll" type="fully.qualified.namespace.and.type" logAuditTrail="false" /> -->
</logging>
However it is worth noting that your bigger issue is probably all the different versions for each updated item of content that you're going to be accumulating. Your DB may get very big and slow, if that is a large number of items. Without knowing anything about your app, I suggest you possibly should be using a custom database for this, rather than Umbraco content?! However the quick fix would be to install unversion.
When i've got my settings set to WARN and publish the specific node that i need to filter, it doesn't save the INFO logs within App_Data > Logs folder which is great.
I've tested the unversion package as well. By setting the specific node that i want to have it filter out in unversion.config
But when i publish that node type the umbracoLogs table are still saving the publish log.
Also, I don't know as it will prevent the log entry. The log entries aren't the main issue. It is the property data that results in a row per property per version for each content item changed. That really racks up quickly.
You can periodically truncate umbracoLog if it is beginning to get large but less than 100,000 records I wouldn't be concerned with.
You're 'rollback' list should be short. Your audit may be uneffected.
I'm normally not worried about it, but if I were then I might create a scheduled task (Windows scheduled task if possible otherwise an umbraco one) that using SQL gets rid of all entries older than X days.
Umbraco 7.4.3 umbracoSettngs <logging>
Hi All,
I'm planning to disable to logging on publish of nodes as i've got a scheduler that update nodes and it's filling up the umbracolog tables.
I thought of excluding this only on the specific nodes but can't find anything.
I'm on umbraco 7.4.3 and i've found the below settings within umbracosettings.config which i've tried but it's still saving the publish logs into the table. Any idea?
Thanks
Just edit log4net.config to set level messages are logged at to WARN (and above).
However it is worth noting that your bigger issue is probably all the different versions for each updated item of content that you're going to be accumulating. Your DB may get very big and slow, if that is a large number of items. Without knowing anything about your app, I suggest you possibly should be using a custom database for this, rather than Umbraco content?! However the quick fix would be to install unversion.
Thanks David,
I'll try out the WARN option to see it works. The package of unversion sounds awesome too. I'll try to play around with it as well.
Do you know if unversion allows you to specify the Doc Type to be excluded from logging?
Thanks
No worries. If it solves the query can you mark it as the solution please?
Yes UnVersion can be specific to a doc type(s)
Hey David,
When i've got my settings set to WARN and publish the specific node that i need to filter, it doesn't save the INFO logs within App_Data > Logs folder which is great.
I've tested the unversion package as well. By setting the specific node that i want to have it filter out in unversion.config
But when i publish that node type the umbracoLogs table are still saving the publish log.
Does it works on yours? I'm on Umbraco 7.4.3
Thanks
Oh yeah i have the following in my unversion.config
Do you need the Xpath attribute?
Also, I don't know as it will prevent the log entry. The log entries aren't the main issue. It is the property data that results in a row per property per version for each content item changed. That really racks up quickly.
You can periodically truncate umbracoLog if it is beginning to get large but less than 100,000 records I wouldn't be concerned with.
You're 'rollback' list should be short. Your audit may be uneffected.
dont' really know. i'll remove that bits and retest it again. I've set the maxDays to '0'
yup there's only a single item in my version now :)
david, do you manually truncate your umbracoLog in your sql or do you normally use a tool for it?
Thanks
I'm normally not worried about it, but if I were then I might create a scheduled task (Windows scheduled task if possible otherwise an umbraco one) that using SQL gets rid of all entries older than X days.
sorted :)
Great. Pleased to hear it.
is working on a reply...