Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] LogLevel from XML dialplan?


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
Antony.Stone at freesw...
Guest





PostPosted: Tue Nov 01, 2022 8:48 am    Post subject: [Freeswitch-users] LogLevel from XML dialplan? Reply with quote

Hi.

https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools:+log tells me
that I can specify the LogLevel of messages:

log [loglevel] <log message>

It also tells me that I can use the function inline in an XML dialplan:

<action application="log" data="DIALING Extension"/>

How do I specify the LogLevel when using XML?


Thanks,


Antony.

--
Wanted: telepath. You know where to apply.

Please reply to the list;
please *don't* CC me.

_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com
Back to top
brian at freeswitch.com
Guest





PostPosted: Tue Nov 01, 2022 9:18 am    Post subject: [Freeswitch-users] LogLevel from XML dialplan? Reply with quote

Remove SWITCH_LOG_ and use these log levels.


switch_types.h: SWITCH_LOG_DEBUG            - Debug
switch_types.h: SWITCH_LOG_INFO             - Info
switch_types.h: SWITCH_LOG_NOTICE           - Notice
switch_types.h: SWITCH_LOG_WARNING          - Warning
switch_types.h: SWITCH_LOG_ERROR            - Error
switch_types.h: SWITCH_LOG_CRIT             - Critical
switch_types.h: SWITCH_LOG_ALERT            - Alert
switch_types.h: SWITCH_LOG_CONSOLE          - Console
switch_types.h: SWITCH_LOG_DEBUG10 = 110,
switch_types.h: SWITCH_LOG_DEBUG9 = 109,
switch_types.h: SWITCH_LOG_DEBUG8 = 108,
switch_types.h: SWITCH_LOG_DEBUG7 = 107,
switch_types.h: SWITCH_LOG_DEBUG6 = 106,
switch_types.h: SWITCH_LOG_DEBUG5 = 105,
switch_types.h: SWITCH_LOG_DEBUG4 = 104,
switch_types.h: SWITCH_LOG_DEBUG3 = 103,
switch_types.h: SWITCH_LOG_DEBUG2 = 102,
switch_types.h: SWITCH_LOG_DEBUG1 = 101,
switch_types.h: SWITCH_LOG_DEBUG = 7,
switch_types.h: SWITCH_LOG_INFO = 6,
switch_types.h: SWITCH_LOG_NOTICE = 5,
switch_types.h: SWITCH_LOG_WARNING = 4,
switch_types.h: SWITCH_LOG_ERROR = 3,
switch_types.h: SWITCH_LOG_CRIT = 2,
switch_types.h: SWITCH_LOG_ALERT = 1,
switch_types.h: SWITCH_LOG_CONSOLE = 0,
switch_types.h: SWITCH_LOG_DISABLE = -1,
switch_types.h: SWITCH_LOG_INVALID = 64,
switch_types.h: SWITCH_LOG_UNINIT = 1000


On Tue, Nov 1, 2022 at 8:49 AM Antony Stone <Antony.Stone@freeswitch.open.source.it (Antony.Stone@freeswitch.open.source.it)> wrote:

Quote:
Hi.

https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools:+log tells me
that I can specify the LogLevel of messages:

log [loglevel] <log message>

It also tells me that I can use the function inline in an XML dialplan:

<action application="log" data="DIALING Extension"/>

How do I specify the LogLevel when using XML?


Thanks,


Antony.

--
Wanted: telepath.   You know where to apply.

                                                   Please reply to the list;
                                                         please *don't* CC me.

_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com



--



Brian West | Co-founder and Developer
Need Commercial support? email sales@freeswitch.com (sales@freeswitch.com)
FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045
Email: brian@freeswitch.com (brian@freeswitch.com)
Mobile: 918-424-9378
Website: https://www.FreeSWITCH.com
[/url] [url=https://twitter.com/freeswitch]
Back to top
Antony.Stone at freesw...
Guest





PostPosted: Tue Nov 01, 2022 9:40 am    Post subject: [Freeswitch-users] LogLevel from XML dialplan? Reply with quote

On Tuesday 01 November 2022 at 14:54:54, Brian West wrote:

Quote:
Remove SWITCH_LOG_ and use these log levels.

Sorry, but I don't follow.

1. Remove SWITCH_LOG_ from where? That string appears nowhere under
/etc/freeswitch on my systems.

2. How do I specify the log level when using XML?

Here is a dialplan command which works and inserts a log entry with the
default level [INFO]:

<action application="log" data="DIALING Extension"/>

How should I change this so that the logged level is [ALERT]?

Quote:
switch_types.h: SWITCH_LOG_DEBUG - Debug
switch_types.h: SWITCH_LOG_INFO - Info
switch_types.h: SWITCH_LOG_NOTICE - Notice
switch_types.h: SWITCH_LOG_WARNING - Warning
switch_types.h: SWITCH_LOG_ERROR - Error
switch_types.h: SWITCH_LOG_CRIT - Critical
switch_types.h: SWITCH_LOG_ALERT - Alert
switch_types.h: SWITCH_LOG_CONSOLE - Console
switch_types.h: SWITCH_LOG_DEBUG10 = 110,
switch_types.h: SWITCH_LOG_DEBUG9 = 109,
switch_types.h: SWITCH_LOG_DEBUG8 = 108,
switch_types.h: SWITCH_LOG_DEBUG7 = 107,
switch_types.h: SWITCH_LOG_DEBUG6 = 106,
switch_types.h: SWITCH_LOG_DEBUG5 = 105,
switch_types.h: SWITCH_LOG_DEBUG4 = 104,
switch_types.h: SWITCH_LOG_DEBUG3 = 103,
switch_types.h: SWITCH_LOG_DEBUG2 = 102,
switch_types.h: SWITCH_LOG_DEBUG1 = 101,
switch_types.h: SWITCH_LOG_DEBUG = 7,
switch_types.h: SWITCH_LOG_INFO = 6,
switch_types.h: SWITCH_LOG_NOTICE = 5,
switch_types.h: SWITCH_LOG_WARNING = 4,
switch_types.h: SWITCH_LOG_ERROR = 3,
switch_types.h: SWITCH_LOG_CRIT = 2,
switch_types.h: SWITCH_LOG_ALERT = 1,
switch_types.h: SWITCH_LOG_CONSOLE = 0,
switch_types.h: SWITCH_LOG_DISABLE = -1,
switch_types.h: SWITCH_LOG_INVALID = 64,
switch_types.h: SWITCH_LOG_UNINIT = 1000

Thanks,

Antony.

Quote:
On Tue, Nov 1, 2022 at 8:49 AM Antony Stone wrote:
Quote:
Hi.

https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools:+log
tells me that I can specify the LogLevel of messages:

log [loglevel] <log message>

It also tells me that I can use the function inline in an XML dialplan:

<action application="log" data="DIALING Extension"/>

How do I specify the LogLevel when using XML?


Thanks,

--
#define SIX 1+5
#define NINE 8+1

int main() {
printf("%d\n", SIX * NINE);
}
- thanks to ECB for bringing this to my attention

Please reply to the list;
please *don't* CC me.

_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com
Back to top
brian at freeswitch.com
Guest





PostPosted: Tue Nov 01, 2022 10:44 am    Post subject: [Freeswitch-users] LogLevel from XML dialplan? Reply with quote

<action application="log" data="ALERT DIALING Extension"/>


On Tue, Nov 1, 2022 at 9:46 AM Antony Stone <Antony.Stone@freeswitch.open.source.it (Antony.Stone@freeswitch.open.source.it)> wrote:

Quote:
On Tuesday 01 November 2022 at 14:54:54, Brian West wrote:

Quote:
Remove SWITCH_LOG_ and use these log levels.

Sorry, but I don't follow.

1. Remove SWITCH_LOG_ from where?  That string appears nowhere under
/etc/freeswitch on my systems.

2. How do I specify the log level when using XML?

Here is a dialplan command which works and inserts a log entry with the
default level [INFO]:

<action application="log" data="DIALING Extension"/>

How should I change this so that the logged level is [ALERT]?

Quote:
switch_types.h: SWITCH_LOG_DEBUG            - Debug
switch_types.h: SWITCH_LOG_INFO             - Info
switch_types.h: SWITCH_LOG_NOTICE           - Notice
switch_types.h: SWITCH_LOG_WARNING          - Warning
switch_types.h: SWITCH_LOG_ERROR            - Error
switch_types.h: SWITCH_LOG_CRIT             - Critical
switch_types.h: SWITCH_LOG_ALERT            - Alert
switch_types.h: SWITCH_LOG_CONSOLE          - Console
switch_types.h: SWITCH_LOG_DEBUG10 = 110,
switch_types.h: SWITCH_LOG_DEBUG9 = 109,
switch_types.h: SWITCH_LOG_DEBUG8 = 108,
switch_types.h: SWITCH_LOG_DEBUG7 = 107,
switch_types.h: SWITCH_LOG_DEBUG6 = 106,
switch_types.h: SWITCH_LOG_DEBUG5 = 105,
switch_types.h: SWITCH_LOG_DEBUG4 = 104,
switch_types.h: SWITCH_LOG_DEBUG3 = 103,
switch_types.h: SWITCH_LOG_DEBUG2 = 102,
switch_types.h: SWITCH_LOG_DEBUG1 = 101,
switch_types.h: SWITCH_LOG_DEBUG = 7,
switch_types.h: SWITCH_LOG_INFO = 6,
switch_types.h: SWITCH_LOG_NOTICE = 5,
switch_types.h: SWITCH_LOG_WARNING = 4,
switch_types.h: SWITCH_LOG_ERROR = 3,
switch_types.h: SWITCH_LOG_CRIT = 2,
switch_types.h: SWITCH_LOG_ALERT = 1,
switch_types.h: SWITCH_LOG_CONSOLE = 0,
switch_types.h: SWITCH_LOG_DISABLE = -1,
switch_types.h: SWITCH_LOG_INVALID = 64,
switch_types.h: SWITCH_LOG_UNINIT = 1000

Thanks,

Antony.

Quote:
On Tue, Nov 1, 2022 at 8:49 AM Antony Stone wrote:
Quote:
Hi.

https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools:+log
tells me that I can specify the LogLevel of messages:

log [loglevel] <log message>

It also tells me that I can use the function inline in an XML dialplan:

<action application="log" data="DIALING Extension"/>

How do I specify the LogLevel when using XML?


Thanks,

--
#define SIX 1+5
#define NINE 8+1

int main() {
    printf("%d\n", SIX * NINE);
}
        - thanks to ECB for bringing this to my attention

                                                   Please reply to the list;
                                                         please *don't* CC me.

_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com



--



Brian West | Co-founder and Developer
Need Commercial support? email sales@freeswitch.com (sales@freeswitch.com)
FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045
Email: brian@freeswitch.com (brian@freeswitch.com)
Mobile: 918-424-9378
Website: https://www.FreeSWITCH.com
[/url] [url=https://twitter.com/freeswitch]
Back to top
Antony.Stone at freesw...
Guest





PostPosted: Tue Nov 01, 2022 10:47 am    Post subject: [Freeswitch-users] LogLevel from XML dialplan? Reply with quote

On Tuesday 01 November 2022 at 16:18:15, Antony Stone wrote:

Quote:
On Tuesday 01 November 2022 at 16:01:01, Brian West wrote:
Quote:
<action application="log" data="ALERT DIALING Extension"/>

That simply places the word "ALERT" at the start of the logged message.

The log level is still [INFO].

Oh, now I see - it in fact adds a *second* message to the log, this time with
level [ALERT] and of a different syntax. I'll see if I can deal with that...

Thanks for the pointer.

Quote:
Quote:
On Tue, Nov 1, 2022 at 9:46 AM Antony Stone wrote:
Quote:
On Tuesday 01 November 2022 at 14:54:54, Brian West wrote:
Quote:
Remove SWITCH_LOG_ and use these log levels.

Sorry, but I don't follow.

1. Remove SWITCH_LOG_ from where? That string appears nowhere under
/etc/freeswitch on my systems.

2. How do I specify the log level when using XML?

Here is a dialplan command which works and inserts a log entry with the
default level [INFO]:

<action application="log" data="DIALING Extension"/>

How should I change this so that the logged level is [ALERT]?

Quote:
switch_types.h: SWITCH_LOG_DEBUG - Debug
switch_types.h: SWITCH_LOG_INFO - Info
switch_types.h: SWITCH_LOG_NOTICE - Notice
switch_types.h: SWITCH_LOG_WARNING - Warning
switch_types.h: SWITCH_LOG_ERROR - Error
switch_types.h: SWITCH_LOG_CRIT - Critical
switch_types.h: SWITCH_LOG_ALERT - Alert
switch_types.h: SWITCH_LOG_CONSOLE - Console
switch_types.h: SWITCH_LOG_DEBUG10 = 110,
switch_types.h: SWITCH_LOG_DEBUG9 = 109,
switch_types.h: SWITCH_LOG_DEBUG8 = 108,
switch_types.h: SWITCH_LOG_DEBUG7 = 107,
switch_types.h: SWITCH_LOG_DEBUG6 = 106,
switch_types.h: SWITCH_LOG_DEBUG5 = 105,
switch_types.h: SWITCH_LOG_DEBUG4 = 104,
switch_types.h: SWITCH_LOG_DEBUG3 = 103,
switch_types.h: SWITCH_LOG_DEBUG2 = 102,
switch_types.h: SWITCH_LOG_DEBUG1 = 101,
switch_types.h: SWITCH_LOG_DEBUG = 7,
switch_types.h: SWITCH_LOG_INFO = 6,
switch_types.h: SWITCH_LOG_NOTICE = 5,
switch_types.h: SWITCH_LOG_WARNING = 4,
switch_types.h: SWITCH_LOG_ERROR = 3,
switch_types.h: SWITCH_LOG_CRIT = 2,
switch_types.h: SWITCH_LOG_ALERT = 1,
switch_types.h: SWITCH_LOG_CONSOLE = 0,
switch_types.h: SWITCH_LOG_DISABLE = -1,
switch_types.h: SWITCH_LOG_INVALID = 64,
switch_types.h: SWITCH_LOG_UNINIT = 1000

Thanks,

Antony.

Quote:
On Tue, Nov 1, 2022 at 8:49 AM Antony Stone wrote:
Quote:
Hi.

https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools:+l
og tells me that I can specify the LogLevel of messages:

log [loglevel] <log message>

It also tells me that I can use the function inline in an XML
dialplan:

<action application="log" data="DIALING Extension"/>

How do I specify the LogLevel when using XML?


Thanks,

--
Because it messes up the order in which people normally read text.
Quote:
Why is top-posting such a bad thing?
Quote:
Top-posting.
Quote:
What is the most annoying way of replying to e-mail?

Please reply to the list;
please *don't* CC me.

_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com
Back to top
Antony.Stone at freesw...
Guest





PostPosted: Tue Nov 01, 2022 11:04 am    Post subject: [Freeswitch-users] LogLevel from XML dialplan? Reply with quote

On Tuesday 01 November 2022 at 16:01:01, Brian West wrote:

Quote:
<action application="log" data="ALERT DIALING Extension"/>

That simply places the word "ALERT" at the start of the logged message.

The log level is still [INFO].

Quote:
On Tue, Nov 1, 2022 at 9:46 AM Antony Stone wrote:
Quote:
On Tuesday 01 November 2022 at 14:54:54, Brian West wrote:
Quote:
Remove SWITCH_LOG_ and use these log levels.

Sorry, but I don't follow.

1. Remove SWITCH_LOG_ from where? That string appears nowhere under
/etc/freeswitch on my systems.

2. How do I specify the log level when using XML?

Here is a dialplan command which works and inserts a log entry with the
default level [INFO]:

<action application="log" data="DIALING Extension"/>

How should I change this so that the logged level is [ALERT]?

Quote:
switch_types.h: SWITCH_LOG_DEBUG - Debug
switch_types.h: SWITCH_LOG_INFO - Info
switch_types.h: SWITCH_LOG_NOTICE - Notice
switch_types.h: SWITCH_LOG_WARNING - Warning
switch_types.h: SWITCH_LOG_ERROR - Error
switch_types.h: SWITCH_LOG_CRIT - Critical
switch_types.h: SWITCH_LOG_ALERT - Alert
switch_types.h: SWITCH_LOG_CONSOLE - Console
switch_types.h: SWITCH_LOG_DEBUG10 = 110,
switch_types.h: SWITCH_LOG_DEBUG9 = 109,
switch_types.h: SWITCH_LOG_DEBUG8 = 108,
switch_types.h: SWITCH_LOG_DEBUG7 = 107,
switch_types.h: SWITCH_LOG_DEBUG6 = 106,
switch_types.h: SWITCH_LOG_DEBUG5 = 105,
switch_types.h: SWITCH_LOG_DEBUG4 = 104,
switch_types.h: SWITCH_LOG_DEBUG3 = 103,
switch_types.h: SWITCH_LOG_DEBUG2 = 102,
switch_types.h: SWITCH_LOG_DEBUG1 = 101,
switch_types.h: SWITCH_LOG_DEBUG = 7,
switch_types.h: SWITCH_LOG_INFO = 6,
switch_types.h: SWITCH_LOG_NOTICE = 5,
switch_types.h: SWITCH_LOG_WARNING = 4,
switch_types.h: SWITCH_LOG_ERROR = 3,
switch_types.h: SWITCH_LOG_CRIT = 2,
switch_types.h: SWITCH_LOG_ALERT = 1,
switch_types.h: SWITCH_LOG_CONSOLE = 0,
switch_types.h: SWITCH_LOG_DISABLE = -1,
switch_types.h: SWITCH_LOG_INVALID = 64,
switch_types.h: SWITCH_LOG_UNINIT = 1000

Thanks,

Antony.

Quote:
On Tue, Nov 1, 2022 at 8:49 AM Antony Stone wrote:
Quote:
Hi.

https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools:+log
tells me that I can specify the LogLevel of messages:

log [loglevel] <log message>

It also tells me that I can use the function inline in an XML
dialplan:

<action application="log" data="DIALING Extension"/>

How do I specify the LogLevel when using XML?


Thanks,

--
We all get the same amount of time - twenty-four hours per day.
How you use it is up to you.

Please reply to the list;
please *don't* CC me.

_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com
Back to top
freeswitch at botecomm...
Guest





PostPosted: Wed Nov 02, 2022 8:05 am    Post subject: [Freeswitch-users] LogLevel from XML dialplan? Reply with quote

The "log" dialplan application simply sends a message to the FS log at the loglevel specified by the first word in the data= argument, as you discovered.

Setting the loglevel switch-wide is done elsewhere, but I've never delved into it enough to know which place is which. There are some inter-dependencies so if you change it, you should test for the desired results.

This is a good starting point in the wiki:
https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools%3A+session+loglevel

John Boteler
Bote Communications



-----Original Message-----
From: FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> On Behalf Of Antony Stone
Sent: Tuesday, 1 November, 2022 11:25
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>
Subject: Re: [Freeswitch-users] LogLevel from XML dialplan?

On Tuesday 01 November 2022 at 16:18:15, Antony Stone wrote:

Quote:
On Tuesday 01 November 2022 at 16:01:01, Brian West wrote:
Quote:
<action application="log" data="ALERT DIALING Extension"/>

That simply places the word "ALERT" at the start of the logged message.

The log level is still [INFO].

Oh, now I see - it in fact adds a *second* message to the log, this time with level [ALERT] and of a different syntax. I'll see if I can deal with that...

Thanks for the pointer.

Quote:
Quote:
On Tue, Nov 1, 2022 at 9:46 AM Antony Stone wrote:
Quote:
On Tuesday 01 November 2022 at 14:54:54, Brian West wrote:
Quote:
Remove SWITCH_LOG_ and use these log levels.

Sorry, but I don't follow.

1. Remove SWITCH_LOG_ from where? That string appears nowhere
under /etc/freeswitch on my systems.

2. How do I specify the log level when using XML?

Here is a dialplan command which works and inserts a log entry
with the default level [INFO]:

<action application="log" data="DIALING Extension"/>

How should I change this so that the logged level is [ALERT]?

Quote:
switch_types.h: SWITCH_LOG_DEBUG - Debug
switch_types.h: SWITCH_LOG_INFO - Info
switch_types.h: SWITCH_LOG_NOTICE - Notice
switch_types.h: SWITCH_LOG_WARNING - Warning
switch_types.h: SWITCH_LOG_ERROR - Error
switch_types.h: SWITCH_LOG_CRIT - Critical
switch_types.h: SWITCH_LOG_ALERT - Alert
switch_types.h: SWITCH_LOG_CONSOLE - Console
switch_types.h: SWITCH_LOG_DEBUG10 = 110,
switch_types.h: SWITCH_LOG_DEBUG9 = 109,
switch_types.h: SWITCH_LOG_DEBUG8 = 108,
switch_types.h: SWITCH_LOG_DEBUG7 = 107,
switch_types.h: SWITCH_LOG_DEBUG6 = 106,
switch_types.h: SWITCH_LOG_DEBUG5 = 105,
switch_types.h: SWITCH_LOG_DEBUG4 = 104,
switch_types.h: SWITCH_LOG_DEBUG3 = 103,
switch_types.h: SWITCH_LOG_DEBUG2 = 102,
switch_types.h: SWITCH_LOG_DEBUG1 = 101,
switch_types.h: SWITCH_LOG_DEBUG = 7,
switch_types.h: SWITCH_LOG_INFO = 6,
switch_types.h: SWITCH_LOG_NOTICE = 5,
switch_types.h: SWITCH_LOG_WARNING = 4,
switch_types.h: SWITCH_LOG_ERROR = 3,
switch_types.h: SWITCH_LOG_CRIT = 2,
switch_types.h: SWITCH_LOG_ALERT = 1,
switch_types.h: SWITCH_LOG_CONSOLE = 0,
switch_types.h: SWITCH_LOG_DISABLE = -1,
switch_types.h: SWITCH_LOG_INVALID = 64,
switch_types.h: SWITCH_LOG_UNINIT = 1000

Thanks,

Antony.

Quote:
On Tue, Nov 1, 2022 at 8:49 AM Antony Stone wrote:
Quote:
Hi.

https://freeswitch.org/confluence/display/FREESWITCH/mod_dptoo
ls:+l og tells me that I can specify the LogLevel of messages:

log [loglevel] <log message>

It also tells me that I can use the function inline in an XML
dialplan:

<action application="log" data="DIALING Extension"/>

How do I specify the LogLevel when using XML?


Thanks,

--
Because it messes up the order in which people normally read text.
Quote:
Why is top-posting such a bad thing?
Quote:
Top-posting.
Quote:
What is the most annoying way of replying to e-mail?

Please reply to the list;
please *don't* CC me.

_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com


_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services