@@ -67,9 +67,13 @@ property of a table entity along with some system-defined properties
67
67
are supported.
68
68
69
69
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 ``.
73
77
74
78
The *extra_properties * accepts a sequence of bare formatters for
75
79
**logging.LogRecord ** listed
@@ -280,6 +284,7 @@ three different types of storage from the logger:
280
284
'class': 'azure_storage_logging.handlers.TableStorageHandler',
281
285
'formatter': 'simple',
282
286
'batch': True,
287
+ 'batch_size': 20,
283
288
'extra_properties': ['%(hostname)s', '%(levelname)s'],
284
289
'partition_key_formatter': 'cfg://formatters.partition_key',
285
290
'row_key_formatter': 'cfg://formatters.row_key',
0 commit comments