Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
5 Trả lời
8232 Lượt xem

Hi,

What is the use / purpose  of  logging menu ?

Settings -> Technical -> Database structure -> Logging

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

I use this menu as PRINT :)

When you are not able to access Terminal/command promt(on client server, saas)

And you want to print something for checking, at that time this menu will help.

If you go to Server Action -> and select Execute Python Code
 "PYTHON CODE" tab will visible, There are default comments, in that you can see this one

#  - log : log(message), function to log debug information in logging table

here, when you don't know what is inside the field, you can check it like

log(">>>>>Next number is %s" % record.number)

After executing this action a new record will created in logging(in that table 'Function' will store your action name)

Now, go to  -> Logging menu , Find new record by your action name and in that record you can see "Message" field.
 That's what our print result ;)

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Useful in many cases, suppose you want to log xml requests inside database then you can use logging..

Ảnh đại diện
Huỷ bỏ
Tác giả

thanks for the response, can you give some more explanation on the same

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 11 24
20791
1
thg 9 23
3594
3
thg 5 23
6199
7
thg 4 23
49588
1
thg 12 22
8292