K
K
Kirill Zhuravlev2019-01-14 16:34:09
linux
Kirill Zhuravlev, 2019-01-14 16:34:09

Why does 1c 8.2 not write logs?

Hello. 1C Enterprise 8.2 began to freeze periodically.
I'm trying to set up logging to understand the cause of the hang.
The contents of the logcfg.xml file

<?xml version="1.0" encoding="UTF-8"?>
<config xmlns="http://v8.1c.ru/v8/tech-log">
        <dump create="1" location="/var/log/1c/dumps" type="3">
        <log history="136" location="/var/log/1c">
        <event>
                <eq property="name" value="CALL"/>
        </event>
        <event>
                <eq property="name" value="EXCPNTX"/>
        </event>
        <event>
                <eq property="name" value="ADMIN"/>
        </event>
        <event>
                <eq property="name" value="MEM"/>
        </event>
        <event>
                <eq property="name" value="LEAKS"/>
        </event>
        <property name="all"/>
        </log>
</config>

Permissions on /var/log/1c
drwxrwxrwx 3 usr1cv82 grp1cv82
However, the folder is empty. What did I overlook?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Kinash, 2019-01-14
@zhuravlevkk

Does the user under which the 1C server is started have access to the logcfg.xml file?
Was the server restarted after changing the config?

F
fotov, 2019-02-28
@fotov

Following code

<event>
                <eq property="name" value="CALL"/>
        </event>
        <event>
                <eq property="name" value="EXCPNTX"/>
        </event>
        <event>
                <eq property="name" value="ADMIN"/>
        </event>
        <event>
                <eq property="name" value="MEM"/>
        </event>
        <event>
                <eq property="name" value="LEAKS"/>
        </event>

means that to log events that satisfy several conditions at the same time
try one condition
<event>
      <ne property="Name" value=""/>
    </event>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question