#include <iostream>
#include "uCalc.h"

using namespace std;
using namespace uCalcSoftware;

int main() {
   uCalc uc;
   uCalc::Transformer t;
   // Note the use of {@String} to capture the quoted text
   t.FromTo("'['{level}']' Code: {code}, Msg: {@String:message}",
   "[{level}] - {message} (Code {code})");

   auto log = "[ERROR] Code: 404, Msg: 'Not Found'";
   cout << t.Transform(log) << endl;
}