Commit Graph

48 Commits

Author SHA1 Message Date
Marco Pesenti Gritti
3dd77cdd0b Use incremental numbers to avoid double logs, nicer
than timestamps.
2007-10-09 22:38:57 +02:00
Marco Pesenti Gritti
2a47190f28 When running from a terminal don't use logs. 2007-10-09 21:50:48 +02:00
Marco Pesenti Gritti
56ecabbd78 Readd timestamps to the logs 2007-10-09 21:43:55 +02:00
Marco Pesenti Gritti
50344772eb Looks like I can't dup2 and stream logs on the same file. 2007-10-09 21:30:28 +02:00
Marco Pesenti Gritti
46d128c85a Cleanup the logs stuff a bit. 2007-10-09 21:18:54 +02:00
Marco Pesenti Gritti
b44a2916ba Rework sugar.logger and make activities just
redirect their output to a log.
2007-10-09 18:58:39 +02:00
Marco Pesenti Gritti
6018198e83 Add a DBus service to tweak the log level, it will be used by the developer console.
Default to error, unless SUGAR_LOGGER_LEVEL is set.
2007-09-05 11:22:41 +02:00
Marco Pesenti Gritti
3ae5186b7a Use the activity service name for logs rather than
the user visible name.
2007-09-04 15:55:21 +02:00
Dan Williams
f0e773db38 Don't traceback when writing zero-length message 2007-08-28 14:54:54 -04:00
Marco Pesenti Gritti
43fb1627a7 Cleanup 2007-08-15 12:23:57 +02:00
Dan Williams
5e30ed9f3b Turn logs on by default for the emulator 2007-07-25 12:24:10 -04:00
Dan Williams
c5063ebc19 Turn off logging by default; re-enable on a per-module basis using environment variables 2007-07-24 18:29:18 -04:00
Simon McVittie
5ebcf5eda9 Include timestamps (with 100 us resolution) in Sugar logfiles, to allow debugging of IPC and timeouts 2007-07-11 21:30:41 +01:00
Tomeu Vizoso
91955f16ff Add flush method. 2007-07-06 18:24:38 +02:00
Marco Pesenti Gritti
99e8077f59 Implement fix-copyright and fix some of them 2007-06-24 14:43:48 +02:00
Tomeu Vizoso
527e22ba5d Get one line back :) 2007-05-29 23:25:47 +02:00
Konrad Kleine
7b4333dc4e Bug 590# fixed (codestyle issues) 2007-05-29 21:29:14 +02:00
Konrad Kleine
76d3e78302 Bug #590 fixed.
All logfiles will be backed up to ~./sugar/default/logs/old .
You can adjust the backup directory and the number of backup
versions.

You can also adjust the file suffix for the backup files.

Konrad Kleine
2007-05-29 21:28:59 +02:00
Tomeu Vizoso
87d59ae13b Avoid crashing in atexit. 2007-05-22 18:24:56 +02:00
Simon McVittie
1f024ff6e4 sugar.logger: Use formatters properly when interfacing with logging.
This fixes display of tracebacks in the logs, and adds logger names
2007-05-08 16:24:48 +01:00
Simon McVittie
60d6dcd618 sugar/logger.py: interpolate %x parameters in messages from the logging framework 2007-05-08 11:49:52 +01:00
Mike C. Fletcher
3f10890319 Docstrings for modules all over sugar and shell.
These are just the doc strings I created as I was spelunking
through to see how Sugar manages launching applications.  The
resulting auto-documentation is neither polished or finished,
but it should help people reading the code somewhat.

There are a few minor code cleanups:

  * activityhandle (replacing C idiom for initialisation with
    a Python one)
  * bundle registry (using a parameterised directory name so
    that it shows up in the documentation)
  * validate_activity_id function, use isinstance( item, (str,unicode))
    for the query, rather than two separate checks with isinstance
2007-04-09 22:47:37 -04:00
Dan Williams
76a0f45aa8 More new PS fixes 2007-04-09 16:05:32 -04:00
Justin Gallardo
b9f9ef0fe9 Changed all tabs to 4 spaces for python style 2006-12-04 11:12:24 -08:00
Marco Pesenti Gritti
96b150d2bb Add stdout and stderr to the logs 2006-10-25 15:24:40 +02:00
Marco Pesenti Gritti
ffbed76210 We was missing the warning level 2006-10-24 20:15:41 +02:00
Marco Pesenti Gritti
6ab3b3c07e Cleanup logs dir on shell startup 2006-10-24 20:00:14 +02:00
Marco Pesenti Gritti
f98956acda Cleanup the messages 2006-10-16 17:04:26 +02:00
Marco Pesenti Gritti
4a65739b71 Flush the stream after writing a log 2006-10-16 16:56:48 +02:00
Marco Pesenti Gritti
4e88e927fb Remove the old dbus stuff, use one log file per process 2006-10-16 15:56:22 +02:00
Marco Pesenti Gritti
615242f4f8 Add LGPL header 2006-10-15 01:08:44 +02:00
Marco Pesenti Gritti
7801e05293 Put the log in the profile. Release 0.33 2006-10-06 18:53:12 +02:00
John (J5) Palmieri
be29c542bf Deprecate dbus.dbus_bindings import and use new name_has_owner
API when available
2006-10-03 14:27:51 -04:00
Ivan Krstić
8256be0cf2 Log unhandled exceptions in /tmp/sugar.log 2006-09-11 01:29:20 -04:00
Dan Williams
721ef6e29c Write out log strings as utf8 2006-08-29 11:52:49 -04:00
Dan Williams
8b912fb9fa Don't use dbus for logging until we get deadlock issues sorted out 2006-08-17 16:27:16 -04:00
Dan Williams
f1d6f96dc4 Reset idle_id so we keep logging even if the console isn't set up yet 2006-08-17 14:46:52 -04:00
Marco Pesenti Gritti
6b181ced13 Some cleanups 2006-08-16 00:41:51 +02:00
Marco Pesenti Gritti
1cfd208f7b Do not pass the timeout argument if we are using the in-process console 2006-08-16 00:30:50 +02:00
Marco Pesenti Gritti
b1c7385204 Print traces also on stderr 2006-08-15 13:15:46 +02:00
Marco Pesenti Gritti
3d4330580c Factor out a queue from the handler and use it for exceptions too.
Send all messages in the same dbus call.
2006-08-14 12:18:58 +02:00
Marco Pesenti Gritti
6eb7117c25 Getting presence service logging to work.
Don't lose debug state when switching tab.
2006-08-13 02:57:12 +02:00
Marco Pesenti Gritti
dd7fff79f8 Fix add_python_path, ensure service exist before trying to log 2006-08-13 01:31:24 +02:00
Marco Pesenti Gritti
2636bc63d0 Split the console service out of the shell, to remove dep 2006-08-12 16:19:47 +02:00
Marco Pesenti Gritti
72bf637091 Actually enable exception logging 2006-08-11 23:30:03 +02:00
Marco Pesenti Gritti
9585330e43 Add a way to enable/disable displaying debug messages 2006-08-11 17:05:06 +02:00
Marco Pesenti Gritti
884eef4bd5 Show all activities output in the console, just
activate the tab for the current activity.
2006-08-11 15:21:11 +02:00
Marco Pesenti Gritti
628271959c Refactor the console stuff 2006-08-11 13:05:33 +02:00