Community discussions

MikroTik App
 
zreno
just joined
Topic Author
Posts: 13
Joined: Thu Apr 30, 2009 11:08 pm

logging to a file

Tue Feb 02, 2010 4:00 pm

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
 
zreno
just joined
Topic Author
Posts: 13
Joined: Thu Apr 30, 2009 11:08 pm

Re: logging to a file

Tue Feb 02, 2010 5:42 pm

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
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: logging to a file

Tue Feb 02, 2010 5:49 pm

You can only set the severity of the message. From the manual:
log :log <topic> <message> 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.

Who is online

Users browsing this forum: HeinoHomm, JohnConnett, jollyrogr, leewhat, slimmerwifi and 117 guests