On Wed, Jul 4, 2012 at 9:09 AM, Simon Woolsgrove <[email protected]> wrote:
>
> What do I need to do to enable log messages from any of the triggers ? we 
> have some in house triggers and even those provided do not log e.g 
> logger.debug logger.info etc..

Are they python-based triggers or shell-based ones that live in
/var/log/cobbler/triggers? The python ones are typically installed in
the modules/ directory under site-packages/cobbler.

If they're the python ones (and I'm assuming they are), a logger
object is passed in to the run() command and you can use that to log
messages that will show up in /var/log/cobbler/cobbler.log. For shell
based triggers, just use the logger CLI command and you can send it to
whatever facility you want.
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to