[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [RESEND PATCH 07/12] golang/xenlight: add logging conveniences for within xenlight
On Fri, Jun 18, 2021 at 01:21:40PM +0000, George Dunlap wrote: > > > > On Jun 18, 2021, at 2:17 PM, George Dunlap <George.Dunlap@xxxxxxxxxx> wrote: > > > > > > > >> On May 24, 2021, at 9:36 PM, Nick Rosbrook <rosbrookn@xxxxxxxxx> wrote: > >> > >> Add some logging methods to Context to provide easy use of the > >> Contenxt's xentoollog_logger. These are not exported, but the LogLevel > >> type is so that a later commit can allow the Context's log level to be > >> configurable. > >> > >> Becuase cgo does not support calling C functions with variable > >> arguments, e.g. xtl_log, add an xtl_log_wrap function to the cgo preamble > >> that accepts an already formatted string, and handle the formatting in > >> Go. > >> > >> Signed-off-by: Nick Rosbrook <rosbrookn@xxxxxxxxxxxx> > > > > Looks good. One comment: > > Er, sorry, turns out I had rather more than one comment. Here’s one more: > > Is there any particular reason not to export the Ctx.Log[X]() functions? > No reason other than I tend to only export functions when I know they need to be exported. My motivation for adding these at the time was to help debug development. Would you prefer to export them then? Thanks, NR
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |