Skip to content

Commit 8a2415b

Browse files
committed
add exlpanations
1 parent ca4c352 commit 8a2415b

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

README.rst

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,13 @@ property of a table entity along with some system-defined properties
6767
are supported.
6868

6969
You can specify the *batch* and the *batch_size* if you want to use
70-
batch transaction when creating new log entities. The *batch_size* is
71-
set to 100 (maximum size in a batch transaction for Windows Azure
72-
table storage) by default, and is ignored when the *batch* is ``False``.
70+
batch transaction when creating new log entities. If the *batch* is
71+
``True``, all new log entities will be transferred to the table
72+
at a time when the number of log messages reaches the *batch_size*.
73+
Otherwise, a new log entity will be transferred to the table
74+
every time a logging is performed. The *batch_size* is set to 100
75+
(maximum number of entities in a batch transaction for Windows Azure
76+
Storage table) by default, and is ignored when the *batch* is ``False``.
7377

7478
The *extra_properties* accepts a sequence of bare formatters for
7579
**logging.LogRecord** listed
@@ -280,6 +284,7 @@ three different types of storage from the logger:
280284
'class': 'azure_storage_logging.handlers.TableStorageHandler',
281285
'formatter': 'simple',
282286
'batch': True,
287+
'batch_size': 20,
283288
'extra_properties': ['%(hostname)s', '%(levelname)s'],
284289
'partition_key_formatter': 'cfg://formatters.partition_key',
285290
'row_key_formatter': 'cfg://formatters.row_key',

0 commit comments

Comments
 (0)