Skip to content

Commit 474a213

Browse files
committed
update comments in log moudule
1 parent 6e8cfaf commit 474a213

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/common/log/log.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,11 @@ class Log
6565
static int init(const string &log_file);
6666

6767
/**
68-
* These functions won't output header information such as __FUNCTION__,
69-
* The user should control these information
70-
* If the header information should be outputed
71-
* please use LOG_PANIC, LOG_ERROR ...
68+
* Stream-style logging with default level.
69+
* It will emit the standard log header (time/pid/tid/context/function/file/line)
70+
* via LOG_HEAD before the message, consistent with LOG_* macros.
71+
* If you need to customize or suppress headers, use output/out with your own
72+
* prefix handling instead of this operator.
7273
*/
7374
template <class T>
7475
Log &operator<<(T message);

0 commit comments

Comments
 (0)