Index: src/log-utils.h |
diff --git a/src/log-utils.h b/src/log-utils.h |
index ad669d53d76360bbf63874334734fb8149bf5d97..117f098cc8eed9b4b53c55b1f3810590acdaa597 100644 |
--- a/src/log-utils.h |
+++ b/src/log-utils.h |
@@ -114,6 +114,9 @@ class Log : public AllStatic { |
return !is_stopped_ && (output_handle_ != NULL || output_buffer_ != NULL); |
} |
+ // Size of buffer used for formatting log messages. |
+ static const int kMessageBufferSize = 2048; |
+ |
private: |
typedef int (*WritePtr)(const char* msg, int length); |
@@ -162,9 +165,6 @@ class Log : public AllStatic { |
// access to the formatting buffer and the log file or log memory buffer. |
static Mutex* mutex_; |
- // Size of buffer used for formatting log messages. |
- static const int kMessageBufferSize = 2048; |
- |
// Buffer used for formatting log messages. This is a singleton buffer and |
// mutex_ should be acquired before using it. |
static char* message_buffer_; |
@@ -247,6 +247,9 @@ class LogMessageBuilder BASE_EMBEDDED { |
void AppendDetailed(String* str, bool show_impl_info); |
+ // Append a portion of a string. |
+ void AppendStringPart(const char* str, int len); |
+ |
// Stores log message into compressor, returns true if the message |
// was stored (i.e. doesn't repeat the previous one). |
bool StoreInCompressor(LogRecordCompressor* compressor); |