|
LSSTApplications
1.1.2+25,10.0+13,10.0+132,10.0+133,10.0+224,10.0+41,10.0+8,10.0-1-g0f53050+14,10.0-1-g4b7b172+19,10.0-1-g61a5bae+98,10.0-1-g7408a83+3,10.0-1-gc1e0f5a+19,10.0-1-gdb4482e+14,10.0-11-g3947115+2,10.0-12-g8719d8b+2,10.0-15-ga3f480f+1,10.0-2-g4f67435,10.0-2-gcb4bc6c+26,10.0-28-gf7f57a9+1,10.0-3-g1bbe32c+14,10.0-3-g5b46d21,10.0-4-g027f45f+5,10.0-4-g86f66b5+2,10.0-4-gc4fccf3+24,10.0-40-g4349866+2,10.0-5-g766159b,10.0-5-gca2295e+25,10.0-6-g462a451+1
LSSTDataManagementBasePackage
|
a LogDestination represented by a file. More...
#include <FileDestination.h>
Public Member Functions | |
| virtual | ~FileDestination () |
| const boost::filesystem::path & | getPath () const |
| FileDestination (const std::string &filepath, const boost::shared_ptr< LogFormatter > &formatter, int threshold=threshold::PASS_ALL, bool truncate=false) | |
| FileDestination (const char *filepath, const boost::shared_ptr< LogFormatter > &formatter, int threshold=threshold::PASS_ALL, bool truncate=false) | |
| FileDestination (const boost::filesystem::path &filepath, const boost::shared_ptr< LogFormatter > &formatter, int threshold=threshold::PASS_ALL, bool truncate=false) | |
| FileDestination (const boost::filesystem::path &filepath, bool verbose=false, int threshold=threshold::PASS_ALL, bool truncate=false) | |
| FileDestination (const std::string &filepath, bool verbose=false, int threshold=threshold::PASS_ALL, bool truncate=false) | |
| FileDestination (const char *filepath, bool verbose=false, int threshold=threshold::PASS_ALL, bool truncate=false) | |
Public Member Functions inherited from lsst.pex::logging::LogDestination | |
| LogDestination (std::ostream *strm, const boost::shared_ptr< LogFormatter > &formatter, int threshold=threshold::PASS_ALL) | |
| create a destination with a threshold. More... | |
| LogDestination (const LogDestination &that) | |
| virtual | ~LogDestination () |
| LogDestination & | operator= (const LogDestination &that) |
| int | getThreshold () const |
| void | setThreshold (int threshold) |
| bool | write (const LogRecord &rec) |
Protected Attributes | |
| boost::filesystem::path | _path |
Protected Attributes inherited from lsst.pex::logging::LogDestination | |
| int | _threshold |
| std::ostream * | _strm |
| boost::shared_ptr< LogFormatter > | _frmtr |
a LogDestination represented by a file.
This class makes it easier to attach files to Logs via Python via Log.addDestination().
Definition at line 49 of file FileDestination.h.
|
inline |
create a file destination. If the file does not exist, it will be created; otherwise, messages will be appended.
| filepath | the path to the log file to write messages to. |
| formatter | the LogFormatter to use to format the messages |
| threshold | the minimum volume level required to pass a message to the stream. If not provided, it would be set to 0. |
| truncate | if True, overwrite the previous contents; otherwise, new messages will be appended to the file. |
Definition at line 64 of file FileDestination.h.
|
inline |
create a file destination. If the file does not exist, it will be created; otherwise, messages will be appended.
| filepath | the path to the log file to write messages to. |
| formatter | the LogFormatter to use to format the messages |
| threshold | the minimum volume level required to pass a message to the stream. If not provided, it would be set to 0. |
| truncate | if True, overwrite the previous contents; otherwise, new messages will be appended to the file. |
Definition at line 74 of file FileDestination.h.
|
inline |
create a file destination. If the file does not exist, it will be created; otherwise, messages will be appended.
| filepath | the path to the log file to write messages to. |
| formatter | the LogFormatter to use to format the messages |
| threshold | the minimum volume level required to pass a message to the stream. If not provided, it would be set to 0. |
| truncate | if True, overwrite the previous contents; otherwise, new messages will be appended to the file. |
Definition at line 84 of file FileDestination.h.
| lsst.pex::logging::FileDestination::FileDestination | ( | const boost::filesystem::path & | filepath, |
| bool | verbose = false, |
||
| int | threshold = threshold::PASS_ALL, |
||
| bool | truncate = false |
||
| ) |
create a file destination. If the file does not exist, it will be created; otherwise, messages will be appended. The IndentedFormatter will be used to format the messages
| filepath | the path to the log file to write messages to. |
| verbose | if True, make sure all properties are printed out to the destination |
| threshold | the minimum volume level required to pass a message to the stream. If not provided, it would be set to 0. |
| truncate | if True, overwrite the previous contents; otherwise, new messages will be appended to the file. |
create a file destination. If the file does not exist, it will be created; otherwise, messages will be appended. The IndentedFormatter will be used to format the messages
| filepath | the path to the log file to write messages to. |
| threshold | the minimum volume level required to pass a message to the stream. If not provided, it would be set to 0. |
| truncate | if True, overwrite the previous contents; otherwise, new messages will be appended to the file. |
Definition at line 44 of file FileDestination.cc.
| lsst.pex::logging::FileDestination::FileDestination | ( | const std::string & | filepath, |
| bool | verbose = false, |
||
| int | threshold = threshold::PASS_ALL, |
||
| bool | truncate = false |
||
| ) |
create a file destination. If the file does not exist, it will be created; otherwise, messages will be appended. The IndentedFormatter will be used to format the messages
| filepath | the path to the log file to write messages to. |
| verbose | if True, make sure all properties are printed out to the destination |
| threshold | the minimum volume level required to pass a message to the stream. If not provided, it would be set to 0. |
| truncate | if True, overwrite the previous contents; otherwise, new messages will be appended to the file. |
create a file destination. If the file does not exist, it will be created; otherwise, messages will be appended. The IndentedFormatter will be used to format the messages
| filepath | the path to the log file to write messages to. |
| threshold | the minimum volume level required to pass a message to the stream. If not provided, it would be set to 0. |
| truncate | if True, overwrite the previous contents; otherwise, new messages will be appended to the file. |
Definition at line 52 of file FileDestination.cc.
| lsst.pex::logging::FileDestination::FileDestination | ( | const char * | filepath, |
| bool | verbose = false, |
||
| int | threshold = threshold::PASS_ALL, |
||
| bool | truncate = false |
||
| ) |
create a file destination. If the file does not exist, it will be created; otherwise, messages will be appended. The IndentedFormatter will be used to format the messages
| filepath | the path to the log file to write messages to. |
| verbose | if True, make sure all properties are printed out to the destination |
| threshold | the minimum volume level required to pass a message to the stream. If not provided, it would be set to 0. |
| truncate | if True, overwrite the previous contents; otherwise, new messages will be appended to the file. |
create a file destination. If the file does not exist, it will be created; otherwise, messages will be appended. The IndentedFormatter will be used to format the messages
| filepath | the path to the log file to write messages to. |
| threshold | the minimum volume level required to pass a message to the stream. If not provided, it would be set to 0. |
| truncate | if True, overwrite the previous contents; otherwise, new messages will be appended to the file. |
Definition at line 60 of file FileDestination.cc.
|
virtual |
Definition at line 72 of file FileDestination.cc.
|
inline |
Definition at line 120 of file FileDestination.h.
|
protected |
Definition at line 123 of file FileDestination.h.
1.8.5