snaplogger: /home/snapwebsites/snapcpp/contrib/snaplogger/snaplogger/format.h Source File

format.h
Go to the documentation of this file.
1 /*
2  * License:
3  * Copyright (c) 2013-2019 Made to Order Software Corp. All Rights Reserved
4  *
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License along
19  * with this program; if not, write to the Free Software Foundation, Inc.,
20  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21  *
22  * Authors:
23  * Alexis Wilke alexis@m2osw.com
24  */
25 #pragma once
26 
35 // self
36 //
37 #include "snaplogger/variable.h"
38 
39 
40 
41 namespace snaplogger
42 {
43 
44 
45 
46 
47 class format
48 {
49 public:
50  typedef std::shared_ptr<format> pointer_t;
51 
52  format(std::string const & f);
53 
54  std::string process_message(message const & msg);
55 
56 private:
57  variable::vector_t f_variables = variable::vector_t();
58 };
59 
60 
61 
62 
63 
64 } // snaplogger namespace
65 // vim: ts=4 sw=4 et
Variables are used to dynamically add parameters to log messages.

This document is part of the Snap! Websites Project.

Copyright by Made to Order Software Corp.

Syndicate content

Snap! Websites
An Open Source CMS System in C++

Contact Us Directly