Hi,
thanks for your response.
To the supported types of logging..
I see this in dleyna core's dleyna_log_trace :
- switch (s_log_context.log_type) {
- case DLEYNA_LOG_TYPE_SYSLOG:
- if (s_log_context.mask)
- vsyslog(priority, format, args);
- break;
- case DLEYNA_LOG_TYPE_GLIB:
- if (s_log_context.flags)
- g_logv(s_log_context.log_domain, flags, format,
args);
- break;
- case *DLEYNA_LOG_TYPE_FILE*:
- break;
- default:
- break;
It wouldnt be too hard to implement that with:
+ vfprintf(fw, format, args);
+ fprintf(fw, "\n");
and some stuff around that.
I found out that the problem happens somewhere in libgupnp-av so I will
have to add some logs there.
Dňa 12.07.2016 o 15:06 Jens Georg napísal(a):
Sorry for top posting:
- To get all log levels, you must compile core with all log levels
enabled
- Then you have to recompile the rest, also with all log levels enabled
- If you enable debug, you get a bit more information
- Only supported log targets are console and syslog
- The log might not be helpful, it could be necessary to add some
logging yourself
> Hi,
>
> I am debugging some issue with Tversity Media Server PC Version 3.8
> I see some error of parsing didl - I want to investigate whats
> happening - sniffing on wireshark is quite boring - I didnt find
> anything so far.
> So the question is - how on earth I turn on log levels to trace and
> see things happening there?
>
> I am on Ubuntu 14.04
> dleyna-linux compiled - core v 0.5
> I have conf file created at make install step (I guess) in
> /etc/dleyna-server-service.conf
> Where I have these options:
>
> [general]
> never-quit=false
> connector-name=dbus
> [log]
> log-type=0
> log-level=8
> [netf]
> netf-enabled=false
> netf-list=
>
> In syslog I see very few logs - in fact just the logs at startup..
> I see this amongst them:
> libdleyna/core/settings.c : dleyna_settings_new() --- Log Level: 0x3F
>
> When I set the log-type to 2(in the conf there is comment "# 2=File")
> I couldnt find any logs at all anywhere - is this option already
> supported?