Did you test if the variable has a value? Don't assume it has, put in a test. Before your if statement you could do
echo -a -> %loggin
Then put in a text as first command in your if statement to see if that triggers. Same for the event itself, maybe the event doesn't trigger.
Next, put a echo before the actual line that doesn't work to see what command your script tries to execute.
If all these steps fail, it's gonna be harder to find the problem, and it usually takes careful study of the identifiers you use in the helpfile.
What this all means? You are abusing the $strip. $strip is intended to strip control codes from a string. Your string is $mircdirlogs\ $+ $chan $+ .log $1-,burc. However, the actual string you need is $1-.
The following change fixed it for me
write $mircdirlogs\ $+ $chan $+ .log $strip($1-,burc)
I hear and I forget. I see and I remember. I do and I understand. -Confucius