logging to a file

Hi,

I’m using RB433ah. Do I need additional microSD card to use logging to file option?

I’m having problems with using the logging to file option - It does create a file when setting logging in Winbox, but doesn’t log any data to the file.

Thanks
Zreno

OK, I’ve figured I don’t need microSD card to be able to log to file. However, I still have a following problem…

I’m using following script:
:local interface “wlan1”;
/interface wireless monitor $interface once do={
:local snr $“signal-to-noise”;
:log info “SNR: $snr”;
};

Info is configured to use ‘disk’ as action, and script saves SNR value in a file each time the script is run.

However, if I create topic ‘wireless’ and set ‘disk’ as action, and change the last line in the above script to:
:log wireless “SNR: $snr”; it doesn’t save SNR value in a file…

What did I do wrong?

Thanks
Zreno

You can only set the severity of the message. From the manual:

log :log write message to system log. Available topics are “debug, error, info and warning” :log info “Hello from script”;

The other part of the topic will always be ‘script’ since “:log” is called from a script.