|
| Stream (const char *filename, bool overwrite=true) |
| To append the log in file (e.g.
|
|
| Stream (std::ostream *stdStreamPtr) |
| Logging for any ostream.
|
|
| Stream (Base *baseStreamPtr) |
| Logging Base stream e.g.
|
|
Stream & | operator<< (const RTTypedValue &info) |
| Print an object to the log.
|
|
Stream & | operator<< (std::ostream &(*manip)(std::ostream &)) |
| Invoke a manipulator on the stream, such as Log::endl or std::endl.
|
|
template<typename T > |
Stream & | operator<< (const T &value) |
| Template function to print the value of variable to the log.
|
|
◆ Stream() [1/3]
Log::Stream::Stream |
( |
const char * |
filename, |
|
|
bool |
overwrite = true |
|
) |
| |
To append the log in file (e.g.
log.txt). File name should not have any invalid characters. File path should be valid else error message will display. If file already exist then new content will be appended.
- Parameters
-
[in] | filename | Valid file name with absolute or relative path. |
[in] | overwrite | If the log file already exists its contents will either be overwritten or appended. |
◆ Stream() [2/3]
Log::Stream::Stream |
( |
std::ostream * |
stdStreamPtr | ) |
|
Logging for any ostream.
- Parameters
-
[in] | stdStreamPtr | let the Stream write log messages to an ostream. |
◆ Stream() [3/3]
Log::Stream::Stream |
( |
Base * |
baseStreamPtr | ) |
|
Logging Base stream e.g.
Log::out and Log::err
- Parameters
-
[in] | baseStreamPtr | let the Stream write log messages to base stream. |
◆ operator<<() [1/3]
Print an object to the log.
- Parameters
-
[in] | info | An RTTypedValue object which encapsulates. the data object to print and its type descriptor. |
◆ operator<<() [2/3]
template<typename T >
Stream & Log::Stream::operator<< |
( |
const T & |
value | ) |
|
|
inline |
Template function to print the value of variable to the log.
- Parameters
-
[in] | value | Variable value to print to the log. |
◆ operator<<() [3/3]
Stream & Log::Stream::operator<< |
( |
std::ostream &(*)(std::ostream &) |
manip | ) |
|
Invoke a manipulator on the stream, such as Log::endl or std::endl.
- Parameters
-
[in] | manip | Manipulator callback to the log. |
The documentation for this class was generated from the following file: