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> wrote:
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


--

Brian West | Co-founder and Developer

Need Commercial support? email sales@freeswitch.com

FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045

Email: brian@freeswitch.com

Mobile: 918-424-9378

Website: https://www.FreeSWITCH.com

https://www.facebook.com/signalwireinc?src=email https://twitter.com/freeswitch