Adrian C. wrote:
On Thu, 26 Feb 2009, kba wrote:

  
Thanks for writing it then ;-) However, I still don't know how to 
write to stdout so I can debug my network widget. I tried variations 
of 'io.stdout:write' and 'print' but the messages never appear. What's 
the right syntax for this?
    

If you use a login manager those messages would be logged in it's log. 
Often their Xsession files are written so that whole *error* output goes 
to ~/.xsession-errors (or /tmp) and if you start X your self (or your 
login manager uses ~/.xinitrc) you can start awesome like this (as I do 
too):

exec /usr/bin/awesome 2> ~/.config/awesome/session-errors

...and then use io.stderr:write(err) to log to that file (or to 
~/.xsession-errors like it's explained above).
  
Another option if you start X yourself is to just check the output on the VTY you started it on. For example, I typically start X on VTY 1, so when I need to see what awesome has outputted I cat /dev/vcs1

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to