Hello,
The patches related to logging customization has been merged in the master.
Can the reviewers please review the patches for R2.20 and R2.1 please
and bless me :)
Branch - R2.20
--------------
https://review.opencontrail.org/#/c/11106/
https://review.opencontrail.org/#/c/11112/
Branch - R2.1
--------------
https://review.opencontrail.org/#/c/11115/
https://review.opencontrail.org/#/c/11116/
https://review.opencontrail.org/#/c/11105/
Thanks
Numan
On 02/23/2015 11:55 PM, Numan Siddique wrote:
Yes Pedro, Sure. I will submit a blueprint.
Thanks
Numan
On 02/23/2015 10:30 PM, Pedro Marques wrote:
Numan,
Would you be willing to write up a blueprint that recommends how
processes (python and c++) should configure and initialize their
logging ? Maybe if you could provide a specific example that would be
helpful.
thank you,
Pedro.
On Feb 23, 2015, at 6:04 AM, Numan Siddique
<[email protected] <mailto:[email protected]>>
wrote:
Hello dev team,
Presently I see that logging parameters in OpenContrail (both for
python and c++ (log4cplus) modules) are not configurable.
* Logging parameters like file size, file rotation count etc
are hard coded.
* Handlers (syslog handler, FileRotatingHandler etc) are not
configurable.
* Log format is hardcoded.
* It is not possible to use other system wide log file rotations.
Log handling in OpenContrail can be enhanced to make the log
parameters configurable by reading from a file since it is supported
by python logging module [1] and log4cplus [2].
It would be probably good to provide the mechanism for the user to
override the default OpenContrail (pysandesh log handling) log
handling so that the user can use oslo.log or any other logging
mechanism atleast for python components.
Please let us know your thoughts on this.
[1] -
https://docs.python.org/2/library/logging.config.html#module-logging.config
[2] -
http://log4cplus.sourceforge.net/docs/html/classlog4cplus_1_1PropertyConfigurator.html#af6b87ca97967f2f600f22d19002f47d6
Thanks
Numan
_______________________________________________
Dev mailing list
[email protected] <mailto:[email protected]>
http://lists.opencontrail.org/mailman/listinfo/dev_lists.opencontrail.org
_______________________________________________
Dev mailing list
[email protected]
http://lists.opencontrail.org/mailman/listinfo/dev_lists.opencontrail.org