OpenEdit User Forum

Welcome to the OpenEdit DAM User Forum.

You must be registered and logged in to post a new comment or topic.

If you require dedicated support to your OpenEdit DAM project, please see our Buy OpenEdit DAM Support page for more information.

openedit_authenticationLog recent.log and executing an action once only when server startup

Hello,

I have a couple of question that need your help.

1.openedit_authenticationLog

Please provide me more information regarding to the "WEB-INF\logs\openedit_authenticationLog\recent.log" file.

Does it store all the users's logging actions or just recent actions only?

How to disable logging to this file?

2. How can I config OE to execute an action once only when server startup?

Thanks,

Tuan

Hi!

1) This file only stores the last 1000 actions. After that these actions are stored in an index and removed from the file.

If you want to disable this logging I recommend you to create a /WEB-INF/pluginoverrides.xml file with this content:

<beans>
    <bean id="userManager" class="com.openedit.users.filesystem.FileSystemUserManager">
        <constructor-arg index="0">
            <bean class="java.io.File">
                <constructor-arg><ref bean="root"/></constructor-arg>
                 <constructor-arg><value>/WEB-INF/users</value></constructor-arg>
            </bean>
        </constructor-arg>
        <constructor-arg index="1">
            <bean class="java.io.File">
                <constructor-arg><ref bean="root"/></constructor-arg>
                 <constructor-arg><value>/WEB-INF/groups</value></constructor-arg>
            </bean>
        </constructor-arg>
        <property name="pageManager"><ref bean="pageManager"/></property>
        <property name="authenticator"><ref bean="authenticator"/></property>
        <property name="stringEncryption"><ref bean="stringEncryption"/></property>
        <property name="webEventListener"><ref bean="myListener"/></property>   
    </bean>
    <bean id="myListener" class="org.openedit.event.WebEventCompositeListener">
        <property name="webEventListeners">
            <list/>
        </property>       
    </bean>
</beans>

That should replace the user manager's logger with an empty one.

 

2) Go to your site's scheduler (/openedit/scheduler/index.html) and add a new task with a period of "0" and enable it. That should make it run only at server startup.

 

Jorge Valencia (OpenEdit) Wed, Mar 18, 12:48 PM

Thank you very much.

Tuan Pham Anh Wed, Mar 18, 1:01 PM

Log in or post as Anonymous:

Submission test: 0+5=