How to add log in Jitsi prosody plugin lua files

I am trying to add some log in Jitsi meet prosody module Lua files. I am not familiar with Lua programming actually. what I want is e.g : in mod_muc_allowners.Lua file. How to add logs in these lua files and where can I check this?

[jitsi-meet/mod_muc_allowners.lua at master · jitsi/jitsi-meet · GitHub]

[jitsi-meet/mod_av_moderation_component.lua at 827e8201d413f655bf8b81673153995a89408585 · jitsi/jitsi-meet · GitHub]
in this file, suppose I want to add some print statement, so how can I add and where can I find that

function occupant_affiliation_changed(event)

also, are these Lua files run from the Prosody server? is there any connection in Jicofo for added prosody modules in jitsi meet?

Thank you,

Check module:log lines

Logs are in /var/log/prosody/

Thank you, I can get this in the docker prosody container?