osquery-1/osquery
Alexander 5fa1ebad13
Output stream like operator << for Error (#4670)
To create an error human readable message should be provided among other argmunts.
Which is good to better understanding what happend by log records.
To make it more informative user in most cases should put in those message some data (numbers, strings etc.).
This operator will help us to avoid using verbose constructions like boost::format or std::ostringstream or something similar to format a proper error message.
We will be able just to "stream" in a created error any "printable" variables from the context.

Additionaly we will be able to use "fancy" tools for streams like boost::io::quoted or std::hex to format messages.

Example:
```c++
createError(SystemErorr::NoSuchFile, "Could not read pidfile: ")
  << boost::io::quoted(pidfile_path)
  << " " << read_status.toString();
```
2018-07-05 16:12:18 +01:00
..
carver moved from file(GLOB); added CMAKE_CURRENT_LIST_DIR to support include syntax (#4582) 2018-06-18 14:24:20 +01:00
config Refactor/cmake 5 (#4642) 2018-06-26 16:54:08 +01:00
core Output stream like operator << for Error (#4670) 2018-07-05 16:12:18 +01:00
database Refactor/cmake 5 (#4642) 2018-06-26 16:54:08 +01:00
devtools moved from file(GLOB); added CMAKE_CURRENT_LIST_DIR to support include syntax (#4582) 2018-06-18 14:24:20 +01:00
dispatcher Refactor/cmake 5 (#4642) 2018-06-26 16:54:08 +01:00
distributed Refactor/cmake 5 (#4642) 2018-06-26 16:54:08 +01:00
events Refactor/cmake (#4644) 2018-06-26 18:27:24 +01:00
examples Bundle C++ extensions into a single executable (#4335) 2018-06-03 02:04:36 +01:00
extensions Refactor/cmake (#4644) 2018-06-26 18:27:24 +01:00
filesystem Refactor/cmake (#4644) 2018-06-26 18:27:24 +01:00
logger Refactor/cmake (#4644) 2018-06-26 18:27:24 +01:00
main add recovery behavior to osqueryd Windows service (#4565) 2018-06-19 16:58:33 -04:00
registry Refactor/cmake (#4646) 2018-06-27 18:08:52 +01:00
remote Refactor/cmake (#4646) 2018-06-27 18:08:52 +01:00
sql Add ssdeep table for posix (#4629) 2018-06-29 19:50:47 +01:00
tables adding bash_session logging (#4640) 2018-07-04 15:25:38 +01:00
tests reorganized includes to improve compile time (#4445) 2018-05-30 00:17:40 +01:00
utils reworked part of cmake files (#4638) 2018-06-26 12:03:35 +01:00
CMakeLists.txt Refactor/cmake (#4646) 2018-06-27 18:08:52 +01:00