- boost::mutex::scoped_lock lm (_mutex);
-
- vector<string> types;
- split (types, t, is_any_of (","));
-
- _types = 0;
-
- for (vector<string>::const_iterator i = types.begin(); i != types.end(); ++i) {
- if (*i == N_("general")) {
- _types |= GENERAL;
- } else if (*i == N_("warning")) {
- _types |= WARNING;
- } else if (*i == N_("error")) {
- _types |= ERROR;
- } else if (*i == N_("timing")) {
- _types |= TIMING;
- }
+ switch (type) {
+ case dcp::DCP_PROGRESS:
+ do_log (shared_ptr<const LogEntry> (new StringLogEntry (LogEntry::TYPE_GENERAL, m)));
+ break;
+ case dcp::DCP_ERROR:
+ do_log (shared_ptr<const LogEntry> (new StringLogEntry (LogEntry::TYPE_ERROR, m)));
+ break;
+ case dcp::DCP_NOTE:
+ do_log (shared_ptr<const LogEntry> (new StringLogEntry (LogEntry::TYPE_WARNING, m)));
+ break;