VLC 4.0.0-dev
Loading...
Searching...
No Matches

Message logs. More...

Collaboration diagram for Logging:

Topics

 Logger
 Message log back-end.

Files

file  vlc_messages.h
 Logging functions.

Data Structures

struct  vlc_log_t
 Log message. More...

Macros

#define msg_GenericVa(o, p, fmt, ap)
#define msg_Generic(o, p, ...)
#define msg_Info(p_this, ...)
#define msg_Err(p_this, ...)
#define msg_Warn(p_this, ...)
#define msg_Dbg(p_this, ...)

Typedefs

typedef struct vlc_log_t vlc_log_t
 Log message.

Enumerations

enum  vlc_log_type { VLC_MSG_INFO =0 , VLC_MSG_ERR , VLC_MSG_WARN , VLC_MSG_DBG }
 Message types. More...

Functions

void vlc_object_Log (vlc_object_t *obj, int type, const char *module, const char *file, unsigned line, const char *func, const char *format,...)
 Emit a log message.
void vlc_object_vaLog (vlc_object_t *obj, int prio, const char *module, const char *file, unsigned line, const char *func, const char *format, va_list ap)
 Emit a log message.
const char * vlc_strerror (int)
 Formats an error message in the current locale.
const char * vlc_strerror_c (int)
 Formats an error message in the POSIX/C locale (i.e.

Variables

const char vlc_module_name []
void vlc_LogSet (libvlc_int_t *, const struct vlc_logger_operations *, void *data)
 Sets the message logging callback.

Detailed Description

Message logs.

Functions for modules to emit log messages.

Macro Definition Documentation

◆ msg_Dbg

#define msg_Dbg ( p_this,
... )
Value:
msg_Generic(p_this, VLC_MSG_DBG, __VA_ARGS__)
#define msg_Generic(o, p,...)
Definition vlc_messages.h:97
@ VLC_MSG_DBG
Debug.
Definition vlc_messages.h:50

Referenced by access_New(), aout_FiltersPipelineCreate(), aout_FormatPrint(), aout_FormatsPrint(), aout_volume_SetFormat(), ChangeFilters(), config_ChainParse(), config_OpenConfigFile(), Control(), ControlInsertDemuxFilter(), CreateConverter(), CreateVoutIfNeeded(), Decoder_ChangeOutputDelay(), Decoder_ChangeOutputPause(), Decoder_ChangeOutputRate(), DecoderThread_ProcessInput(), DeduceSlaveType(), DeinterlaceCallback(), DeleteDecoder(), demux_NewAdvanced(), Destroy(), DestroySout(), download_key(), download_signature(), EsOutDecodersStopBuffering(), EsOutDelLocked(), EsOutProgramDel(), EsOutProgramEpg(), EsOutProgramHandleClockSource(), EsOutProgramMeta(), EsOutProgramSelect(), EsOutPropsInit(), EsOutSelectEs(), EsOutSend(), EsOutSendEsEvent(), EsOutVaControlLocked(), filter_chain_AppendInner(), filter_chain_DeleteFilter(), GetUpdateFile(), httpd_HostDelete(), ImageReadUrl(), ImageWrite(), Init(), input_ControlPush(), input_Create(), input_EsOutTimeshiftNew(), input_resource_GetAout(), input_resource_PutAout(), input_resource_PutVoutLocked(), input_resource_RequestSout(), input_resource_StopFreeVout(), input_SaveArt(), input_SlaveSourceAdd(), input_SubtitleFile2Uri(), InputGetExtraFilesPattern(), InputSourceInit(), InputStreamHandleAnchor(), installOrRemoveAddon(), libvlc_InternalCleanup(), libvlc_InternalInit(), libvlc_Quit(), LoadSlaves(), MainLoop(), MainLoopDemux(), module_LoadPlugins(), module_unneed(), ModuleThread_GetDecoderDevice(), ModuleThread_PlayAudio(), ModuleThread_PlayVideo(), net_Accept(), net_Connect(), net_ConnectDgram(), net_Listen(), net_ListenSingle(), net_OpenDgram(), net_SetMcastHopLimit(), OpenSDP(), PreparePicture(), RenderPicture(), replay_gain_CalcMultiplier(), RequestVoutRsc(), SelectClockSource(), services_discovery_item_added(), services_discovery_item_removed(), SetHighlights(), SetStopStart(), SlaveDemux(), sout_AnnounceRegisterSDP(), sout_AnnounceUnRegister(), sout_InputDelete(), sout_InputNew(), sout_MuxAddStream(), sout_MuxNew(), sout_NewInstance(), sout_StreamDelete(), sout_StreamNewModule(), spu_UpdateOriginalSize(), stream_CheckReady(), stream_FilterAutoNew(), stream_HandleDiscontinuity(), stream_HandleDrift(), stream_Silence(), stream_StartDiscontinuity(), subtitles_Detect(), system_Configure(), system_ConfigureDbus(), update_DownloadReal(), var_Destroy(), video_format_Print(), vlc_aout_stream_RequestRestart(), vlc_CPU_dump(), vlc_filter_UnloadModule(), vlc_gl_surface_ResizeNotify(), vlc_http_auth_ParseWwwAuthenticateHeader(), vlc_LogSpam(), vlc_rtp_add_media_types(), vlc_rtp_pt_instantiate(), vlc_stream_ReadLine(), vlc_threads_setup(), vlc_tls_SocketOpenTCP(), vlc_tls_SocketOpenTLS(), vlm_New(), vout_ChangeProjection(), vout_ChangeSource(), vout_display_New(), vout_display_ResizeWindow(), vout_display_window_FullscreenNotify(), vout_display_window_IccEvent(), vout_display_window_OutputEvent(), vout_display_window_ResizeNotify(), vout_display_window_StateNotify(), vout_display_window_WindowingNotify(), vout_InitInterlacingSupport(), vout_OpenWrapper(), vout_ResetProjection(), vout_SetInterlacingState(), VoutConverterCreate(), VoutOsdSnapshot(), and xiph_decode().

◆ msg_Err

#define msg_Err ( p_this,
... )
Value:
msg_Generic(p_this, VLC_MSG_ERR, __VA_ARGS__)
@ VLC_MSG_ERR
Error.
Definition vlc_messages.h:48

Referenced by access_New(), AddCallback(), AddIntfCallback(), addons_manager_Gather(), aout_FiltersNewWithClock(), aout_FiltersPipelineCreate(), aout_New(), aout_OutputNew(), AppendFilter(), ChangeFilters(), config_ChainParse(), config_LoadConfigFile(), config_OpenConfigFile(), config_SaveConfigFile(), Control(), Control(), ControlLockedSetPauseState(), ControlLockedSetRate(), ControlUnpause(), ControlUpdateRenderer(), CreateDecoder(), CreateDecoder(), CreateEncoder(), CreateVoutIfNeeded(), CropCallback(), decoder_New(), decoder_UpdateVideoOutput(), DecoderThread_ProcessSout(), DecoderUnsupportedCodec(), DeinterlaceCallback(), DelCallback(), demux_PacketizerNew(), demux_Probe(), demux_vaControlHelper(), EnableWindowLocked(), EsOutAddLocked(), EsOutVaControlLocked(), filter_chain_AppendFromString(), filter_chain_AppendInner(), filter_chain_VideoBufferNew(), fingerprinter_Create(), GetUpdateFile(), httpd_HostCreate(), httpdLoop(), ImageWriteUrl(), InitSout(), input_ControlPush(), input_item_WriteMeta(), input_SaveArt(), input_SlaveSourceAdd(), input_Start(), InputSourceInit(), InputStreamHandleAnchor(), InstallEntry(), intf_Create(), libvlc_InternalActionsInit(), libvlc_InternalAddIntf(), libvlc_InternalInit(), ModuleThread_UpdateVideoFormat(), net_Accept(), net_Connect(), net_ConnectDgram(), net_Listen(), net_ListenSingle(), net_OpenDgram(), net_Read(), net_SetMcastHopLimit(), net_SetMcastOut(), net_SetupDgramSocket(), net_Socket(), net_SourceSubscribe(), net_Subscribe(), net_Write(), Open(), OpenSDP(), OpenURL(), picture_BlendSubpicture(), preparser_GenerateThumbnailToFiles(), preparser_pool_SpawnThread(), PrerenderPicture(), SelectClockSource(), services_discovery_item_added(), services_discovery_item_removed(), SlaveDemux(), SlaveSeek(), sout_AnnounceRegisterSDP(), sout_MuxAddStream(), sout_NewInstance(), spu_PutSubpicture(), SpuRenderRegion(), system_Configure(), system_ConfigureDbus(), TsStart(), update_DownloadReal(), var_OptionParse(), vlc_aout_stream_Drain(), vlc_aout_stream_New(), vlc_credential_get(), vlc_dialog_display_error_va(), vlc_http_auth_FormatAuthorizationHeader(), vlc_http_auth_ParseAuthenticationInfoHeader(), vlc_https_HostNew(), vlc_input_decoder_CreateSubDec(), vlc_input_decoder_Wait(), vlc_keystore_store(), vlc_playlist_Export(), vlc_preparser_New(), vlc_rd_new(), vlc_rtp_pt_create(), vlc_sd_Create(), vlc_stream_NewMRL(), vlc_stream_NewURL(), vlc_stream_ReadLine(), vlc_tls_ClientCreate(), vlc_tls_ClientSessionCreate(), vlc_tls_ServerCreate(), vlc_tls_SocketOpenTCP(), vlc_tls_SocketOpenTLS(), vlc_xlib_init(), vlm_ControlMediaAdd(), vlm_New(), vlm_vaControlInternal(), vout_display_Reset(), vout_display_window_CloseNotify(), vout_GetSnapshot(), vout_Request(), vout_SetDisplayStereo(), vout_SetDisplayViewpoint(), vout_snapshot_SaveImage(), VoutConverterCreate(), VoutSaveSnapshot(), VoutSetupConverter(), xml_Create(), and xml_ReaderCreate().

◆ msg_Generic

#define msg_Generic ( o,
p,
... )
Value:
vlc_object_Log(VLC_OBJECT(o), p, vlc_module_name, __FILE__, __LINE__, \
__func__, __VA_ARGS__)
#define p(t)
const char vlc_module_name[]
void vlc_object_Log(vlc_object_t *obj, int prio, const char *module, const char *file, unsigned line, const char *func, const char *format,...)
Emit a log message.
Definition objects.c:163
#define VLC_OBJECT(x)
Type-safe vlc_object_t cast.
Definition vlc_objects.h:83

◆ msg_GenericVa

#define msg_GenericVa ( o,
p,
fmt,
ap )
Value:
vlc_object_vaLog(VLC_OBJECT(o), p, vlc_module_name, __FILE__, __LINE__, \
__func__, fmt, ap)
void vlc_object_vaLog(vlc_object_t *obj, int prio, const char *module, const char *file, unsigned line, const char *func, const char *format, va_list ap)
Emit a log message.
Definition objects.c:147

Referenced by vlc_dialog_display_error_va().

◆ msg_Info

#define msg_Info ( p_this,
... )
Value:
msg_Generic(p_this, VLC_MSG_INFO, __VA_ARGS__)
@ VLC_MSG_INFO
Important information.
Definition vlc_messages.h:47

Referenced by aout_FiltersNewWithClock(), config_OpenConfigFile(), Control(), GetUpdateFile(), libvlc_InternalAddIntf(), system_Configure(), and update_DownloadReal().

◆ msg_Warn

#define msg_Warn ( p_this,
... )

Typedef Documentation

◆ vlc_log_t

typedef struct vlc_log_t vlc_log_t

Log message.

Enumeration Type Documentation

◆ vlc_log_type

Message types.

Enumerator
VLC_MSG_INFO 

Important information.

VLC_MSG_ERR 

Error.

VLC_MSG_WARN 

Warning.

VLC_MSG_DBG 

Debug.

Function Documentation

◆ vlc_LogSet()

void vlc_LogSet ( libvlc_int_t * vlc,
const struct vlc_logger_operations * ops,
void * opaque )

Sets the message logging callback.

Parameters
vlcthe libvlc private instance to replace the logger for
opsmessage callback, or NULL to clear
opaquedata pointer for the message callback

References discard_log, vlc_logger::ops, vlc_LogExternalCreate(), vlc_LogSpam(), vlc_LogSwitch(), and VLC_OBJECT.

◆ vlc_object_Log()

void vlc_object_Log ( vlc_object_t * obj,
int type,
const char * module,
const char * file,
unsigned line,
const char * func,
const char * format,
... )

Emit a log message.

Parameters
objVLC object emitting the message or NULL
typeVLC_MSG_* message type (info, error, warning or debug)
modulename of module from which the message come (normally vlc_module_name)
filesource module file name (normally FILE) or NULL
linefunction call source line number (normally LINE) or 0
funccalling function name (normally func) or NULL
formatprintf-like message format

References vlc_object_vaLog().

◆ vlc_object_vaLog()

void vlc_object_vaLog ( vlc_object_t * obj,
int prio,
const char * module,
const char * file,
unsigned line,
const char * func,
const char * format,
va_list ap )

Emit a log message.

This function is the variable argument list equivalent to vlc_object_Log().

References vlc_object_t::logger, vlc_object_typename(), and vlc_vaLog().

Referenced by vlc_object_Log().

◆ vlc_strerror()

const char * vlc_strerror ( int errnum)

Formats an error message in the current locale.

Parameters
errnumerror number (as in errno.h)
Returns
A string pointer, valid until the next call to a function of the strerror() family in the same thread. This function cannot fail.

References vlc_strerror_c(), and vlc_strerror_l().

◆ vlc_strerror_c()

const char * vlc_strerror_c ( int errnum)

Variable Documentation

◆ vlc_module_name

const char vlc_module_name[]
extern