Welcome to mirror list, hosted at ThFree Co, Russian Federation.

logging.cpp « lang_getter - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 22250fca96d9c124624698a86b93226add3ec256 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include "logging.h"

#include <iostream>


using namespace std;

Logging::Logging()
{
}

void Logging::Print(STATUS s, QString const & msg)
{
  cout << StatusToString(s).toStdString() << " " << msg.toStdString() << endl;
}

void Logging::Percent(qint64 curr, qint64 total)
{
}

QString Logging::StatusToString(STATUS s) const
{
  switch (s)
  {
  case INFO: return "INFO";
  case WARNING: return "WARNING";
  case ERROR: return "ERROR";
  default: return "NONE";
  }
}