How to reduce Lua-Event logging?

Hi,

we’re testing LUA, how can we reduce the logging for LUA

W1107 09:14:34.696152       LUA-EVENTS LuaContext.cpp:95] Lua says: table
W1107 09:14:34.696152       LUA-EVENTS LuaContext.cpp:95] Lua says: 	[Origin], string, DicomProtocol
W1107 09:14:34.696152       LUA-EVENTS LuaContext.cpp:95] Lua says: 	[SopClassUid], string, 1.2.840.10008.5.1.4.1.1.2
W1107 09:14:34.696152       LUA-EVENTS LuaContext.cpp:95] Lua says: 	[ReceptionDate], string, 20241107T081434
W1107 09:14:34.696152       LUA-EVENTS LuaContext.cpp:95] Lua says: 	[RemoteIP], string, 193.158.90.40
W1107 09:14:34.696152       LUA-EVENTS LuaContext.cpp:95] Lua says: 	[MainDicomTagsSignature], string, 0008,0012;0008,0013;0008,0018;0020,0012;0020,0013;0020,0032;0020,0037;0020,0100;0020,4000;0028,0008;0054,1330
W1107 09:14:34.696152       LUA-EVENTS LuaContext.cpp:95] Lua says: 	[PixelDataOffset], string, 2856
W1107 09:14:34.696152       LUA-EVENTS LuaContext.cpp:95] Lua says: 	[RemoteAET], string, XXX
W1107 09:14:34.696152       LUA-EVENTS LuaContext.cpp:95] Lua says: 	[IndexInSeries], string, 108
W1107 09:14:34.696152       LUA-EVENTS LuaContext.cpp:95] Lua says: 	[CalledAET], string, ORTHANC
W1107 09:14:34.696152       LUA-EVENTS LuaContext.cpp:95] Lua says: 	[TransferSyntax], string, 1.2.840.10008.1.2
W1107 09:14:34.696152       LUA-EVENTS LuaContext.cpp:95] Lua says: OnStoredInstance ... done

This is generating GBs of logfiles.

Is there a possibility to use logrotation under windows?

Maybe by removing the print and PrintRecursive statements from your lua scripts :thinking: ?

:wink:

1 Like

Hi Alain,

i thought i did that before but i didnt’ :slight_smile:

But do you have an idea how to implement logration (windows)?

Never done that ! You’ll need an external script to implement it.