I have submitted the blueprint here [1] I also have uploaded poc code for the same [2][3]

Please let me know the comments

[1] - https://blueprints.launchpad.net/opencontrail/+spec/support-log-configuration [2] - https://github.com/enovance/contrail-controller/commit/9b5a4909d7658b9c1d2a80fef6350d2d03ba2f3d [3] - https://github.com/enovance/contrail-sandesh/commit/6d7477ac145b205ebbb59c65761ae605062a2ccc

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

_______________________________________________
Dev mailing list
[email protected]
http://lists.opencontrail.org/mailman/listinfo/dev_lists.opencontrail.org

Reply via email to