Music Hub  ..
A session-wide music playback service
logger.h File Reference
#include "core/media/non_copyable.h"
#include "core/media/util/utils.h"
#include <boost/optional.hpp>
#include <string>
+ Include dependency graph for logger.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  core::ubuntu::media::Logger
 
struct  core::ubuntu::media::Logger::Location
 

Namespaces

 core
 
 core::ubuntu
 
 core::ubuntu::media
 

Macros

#define TRACE(...)   Log().Tracef(Logger::Location{__FILE__, __FUNCTION__, __LINE__}, __VA_ARGS__)
 
#define DEBUG(...)   Log().Debugf(Logger::Location{__FILE__, __FUNCTION__, __LINE__}, __VA_ARGS__)
 
#define INFO(...)   Log().Infof(Logger::Location{__FILE__, __FUNCTION__, __LINE__}, __VA_ARGS__)
 
#define WARNING(...)   Log().Warningf(Logger::Location{__FILE__, __FUNCTION__, __LINE__}, __VA_ARGS__)
 
#define ERROR(...)   Log().Errorf(Logger::Location{__FILE__, __FUNCTION__, __LINE__}, __VA_ARGS__)
 
#define FATAL(...)   Log().Fatalf(Logger::Location{__FILE__, __FUNCTION__, __LINE__}, __VA_ARGS__)
 
#define MH_TRACE(...)
 
#define MH_DEBUG(...)
 
#define MH_INFO(...)
 
#define MH_WARNING(...)   core::ubuntu::media::Log().Warningf(core::ubuntu::media::Logger::Location{__FILE__, __FUNCTION__, __LINE__}, __VA_ARGS__)
 
#define MH_ERROR(...)   core::ubuntu::media::Log().Errorf(core::ubuntu::media::Logger::Location{__FILE__, __FUNCTION__, __LINE__}, __VA_ARGS__)
 
#define MH_FATAL(...)   core::ubuntu::media::Log().Fatalf(core::ubuntu::media::Logger::Location{__FILE__, __FUNCTION__, __LINE__}, __VA_ARGS__)
 

Functions

std::ostream & core::ubuntu::media::operator<< (std::ostream &strm, Logger::Severity severity)
 
std::ostream & core::ubuntu::media::operator<< (std::ostream &out, const Logger::Location &location)
 
Logger & core::ubuntu::media::Log ()
 
void core::ubuntu::media::SetLogger (const std::shared_ptr< Logger > &logger)
 

Macro Definition Documentation

◆ DEBUG

#define DEBUG (   ...)    Log().Debugf(Logger::Location{__FILE__, __FUNCTION__, __LINE__}, __VA_ARGS__)

Definition at line 112 of file logger.h.

◆ ERROR

#define ERROR (   ...)    Log().Errorf(Logger::Location{__FILE__, __FUNCTION__, __LINE__}, __VA_ARGS__)

Definition at line 115 of file logger.h.

◆ FATAL

#define FATAL (   ...)    Log().Fatalf(Logger::Location{__FILE__, __FUNCTION__, __LINE__}, __VA_ARGS__)

Definition at line 116 of file logger.h.

◆ INFO

#define INFO (   ...)    Log().Infof(Logger::Location{__FILE__, __FUNCTION__, __LINE__}, __VA_ARGS__)

Definition at line 113 of file logger.h.

◆ MH_DEBUG

#define MH_DEBUG (   ...)
Value:
core::ubuntu::media::Logger::Location{__FILE__, __FUNCTION__, __LINE__}, __VA_ARGS__)
Logger & Log()
Definition: logger.cpp:151
void Debugf(const boost::optional< Location > &location, const std::string &pattern, T &&...args)
Definition: logger.h:71

Definition at line 123 of file logger.h.

Referenced by core::ubuntu::media::apparmor::ubuntu::ExistingAuthenticator::authenticate_open_uri_request(), gstreamer::Playbin::can_play_streams(), core::ubuntu::media::apparmor::ubuntu::Context::Context(), core::dbus::Codec< core::ubuntu::media::Track::MetaData >::decode_argument(), gstreamer::Playbin::encode_uri(), media::TrackListImplementation::Private::get_shuffled_insert_it(), gstreamer::Playbin::get_video_dimensions(), media::ServiceSkeleton::Private::handle_create_session(), media::ServiceSkeleton::Private::handle_destroy_session(), media::ServiceSkeleton::Private::handle_reattach_session(), media::TrackListSkeleton::Private::handle_remove_track(), video::EglSink::Private::import_buffer(), core::ubuntu::media::video::make_platform_default_sink_factory(), media::PlayerImplementation::Private< Parent >::make_state_change_handler(), gstreamer::Engine::Private::on_playbin_info(), gstreamer::Playbin::Playbin(), video::EglSink::Private::Private(), audio::PulseAudioOutputObserver::Private::Private(), gstreamer::Playbin::process_message_element(), video::EglSink::Private::read_sock_events(), video::EglSink::Private::receive_buff(), core::ubuntu::media::ServiceStub::ServiceStub(), gstreamer::Playbin::set_state_and_wait(), gstreamer::Playbin::set_uri(), media::TrackListStub::Private::Signals::Signals(), media::PlayerStub::Private::Signals::Signals(), and gstreamer::Engine::stop().

◆ MH_ERROR

◆ MH_FATAL

#define MH_FATAL (   ...)    core::ubuntu::media::Log().Fatalf(core::ubuntu::media::Logger::Location{__FILE__, __FUNCTION__, __LINE__}, __VA_ARGS__)

Definition at line 129 of file logger.h.

◆ MH_INFO

#define MH_INFO (   ...)
Value:
core::ubuntu::media::Logger::Location{__FILE__, __FUNCTION__, __LINE__}, __VA_ARGS__)
Logger & Log()
Definition: logger.cpp:151
void Infof(const boost::optional< Location > &location, const std::string &pattern, T &&...args)
Definition: logger.h:76

Definition at line 125 of file logger.h.

Referenced by media::PlayerImplementation::Private< Parent >::clear_wakelock(), gstreamer::Playbin::get_file_content_type(), gstreamer::Playbin::is_audio_file(), gstreamer::Playbin::is_video_file(), core::ubuntu::media::make_platform_default_recorder_observer(), core::ubuntu::media::video::make_platform_default_sink_factory(), media::PlayerImplementation::Private< Parent >::make_playback_status_change_handler(), media::PlayerImplementation::Private< Parent >::make_state_change_handler(), gstreamer::Engine::Private::on_playbin_state_changed(), audio::PulseAudioOutputObserver::Private::on_query_for_primary_sink_finished(), media::PlayerImplementation::Private< Parent >::open_first_track_from_tracklist(), core::ubuntu::media::platform_default_client_death_observer(), gstreamer::Engine::play(), media::PlayerImplementation::Private< Parent >::Private(), media::PlayerImplementation::Private< Parent >::request_power_state(), gstreamer::Playbin::reset(), gstreamer::Playbin::set_audio_stream_role(), and media::PlayerImplementation::Private< Parent >::update_mpris_properties().

◆ MH_TRACE

◆ MH_WARNING

◆ TRACE

#define TRACE (   ...)    Log().Tracef(Logger::Location{__FILE__, __FUNCTION__, __LINE__}, __VA_ARGS__)

Definition at line 111 of file logger.h.

◆ WARNING

#define WARNING (   ...)    Log().Warningf(Logger::Location{__FILE__, __FUNCTION__, __LINE__}, __VA_ARGS__)

Definition at line 114 of file logger.h.