Changeset 1859 for trunk/src


Ignore:
Timestamp:
08/05/10 14:40:38 (14 years ago)
Author:
Malte Marquarding
Message:

Ticket #193: the rcParamsverbose? flag is only used in standard asap cli mode. Otherwise log messages are always send to the logger and one needs to call asaplog.disable()/asaplog.enable() to controls this. I have also added the function name as the log origin.

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/AsapLogSink.cpp

    r1819 r1859  
    2121
    2222  void AsapLogSink::postMessage(const std::string& msg,
    23                                 const std::string& location,
    24                                 const std::string& priority)
     23                                const std::string& priority,
     24                                const std::string& origin)
    2525  {
    2626    LogMessage::Priority p;
     
    3232      p = LogMessage::SEVERE;
    3333    }
    34     LogMessage message(msg, LogOrigin(location), p);
     34    LogMessage message(msg, LogOrigin(origin), p);
    3535
    3636    MemoryLogSink::postLocally(message);
  • trunk/src/AsapLogSink.h

    r1819 r1859  
    3737
    3838  virtual void postMessage(const std::string& msg,
    39                            const std::string& location="",
    40                            const std::string& priority="INFO");
     39                           const std::string& priority="INFO",
     40                           const std::string& origin="");
    4141
    4242  std::string popMessages();
  • trunk/src/python_LogSink.cpp

    r1819 r1859  
    4141        .def( init <> () )
    4242        .def("post", &AsapLogSink::postMessage,
    43          (boost::python::arg("location")="",
    44          boost::python::arg("priority")="INFO"))
     43         (boost::python::arg("priority")="INFO",
     44         boost::python::arg("origin")=""))
    4545        .def("pop", &AsapLogSink::popMessages)
    4646      ;
Note: See TracChangeset for help on using the changeset viewer.