~unity-team/unity/libunity-7.0-breakage

« back to all changes in this revision

Viewing changes to plugins/unityshell/src/DebugDBusInterface.cpp

  • Committer: Tim Penhey
  • Date: 2012-10-29 09:34:54 UTC
  • mto: This revision was merged to the branch mainline in revision 2867.
  • Revision ID: tim.penhey@canonical.com-20121029093454-4fjg18nf9u33r2u3
Use the new logging declarations to avoid static initialization of the logger objects.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
 
39
39
namespace debug
40
40
{
 
41
DECLARE_LOGGER(logger, "unity.debug.interface");
41
42
namespace
42
43
{
43
 
nux::logging::Logger logger("unity.debug.DebugDBusInterface");
44
 
 
45
44
namespace local
46
45
{
47
46
  std::ofstream output_file;
266
265
                std::string const& message)
267
266
{
268
267
  nux::logging::Level level = nux::logging::get_logging_level(severity);
269
 
  if (logger.GetEffectiveLogLevel() <= level)
 
268
  nux::logging::Logger const& log_ref = Unwrap(logger);
 
269
  if (log_ref.GetEffectiveLogLevel() <= level)
270
270
  {
271
 
   nux::logging::LogStream(level, logger.module(), __FILE__, __LINE__).stream()
 
271
    nux::logging::LogStream(level, log_ref.module(), __FILE__, __LINE__).stream()
272
272
      << message;
273
273
  }
274
274
}