Re: GJS: Logging for extensions?



On Sun, Jul 3, 2011 at 2:25 AM, Tim Cuthbertson <tim gfxmonk net> wrote:
> Hi all,
>
> Since I'm working on a reasonably complex shell extension
> (http://gfxmonk.net/shellshape/), I am wondering if there's a decent
> logging system for gjs or gnome-shell. Right now I'm using
> global.log(), but this is a bit rubbish since it's really verbose, and
> I end up leaving my log comments commented out and traipsing round the
> codebase enabling them when I'm trying to debug something.
>
> So, is there anything for this already? Or should I try porting a
> browser-based logger to gjs and/or roll my own?

What would you like? Something like "console.log", "console.warn" and
"console.error"? Where would you like it to go?

I've been trying to get it out of the LookingGlass for a bit now, but
I don't have any good ideas for replacements besides stderr or a new a
panel. What would you like?

> Cheers,
>  - Tim.
> _______________________________________________
> gnome-shell-list mailing list
> gnome-shell-list gnome org
> http://mail.gnome.org/mailman/listinfo/gnome-shell-list
>

-- 
 Jasper


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]