|
LSSTApplications
8.0.0.0+107,8.0.0.1+13,9.1+18,9.2,master-g084aeec0a4,master-g0aced2eed8+6,master-g15627eb03c,master-g28afc54ef9,master-g3391ba5ea0,master-g3d0fb8ae5f,master-g4432ae2e89+36,master-g5c3c32f3ec+17,master-g60f1e072bb+1,master-g6a3ac32d1b,master-g76a88a4307+1,master-g7bce1f4e06+57,master-g8ff4092549+31,master-g98e65bf68e,master-ga6b77976b1+53,master-gae20e2b580+3,master-gb584cd3397+53,master-gc5448b162b+1,master-gc54cf9771d,master-gc69578ece6+1,master-gcbf758c456+22,master-gcec1da163f+63,master-gcf15f11bcc,master-gd167108223,master-gf44c96c709
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