aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Expand logging on amuled?  (Read 3418 times)

vdb

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 215
Expand logging on amuled?
« on: July 31, 2005, 12:36:43 PM »

I've been using the amule daemon for a while now, and I am very happy with it. However, I do miss the logging capabilities that the amule GUI offers: Banned users, start/finish of hashing new files, connection attempts to servers etc. All I now see is "started amuled".

Would it be possible to extend the logging of the daemon in a next release?
Logged
A waste is a terrible thing to mind.

lfroen

  • Guest
Re: Expand logging on amuled?
« Reply #1 on: July 31, 2005, 03:54:49 PM »

You have exactly same log in amuled as with gui amule. There's option to put all the log to stdout (-o if I remember correctly). It will not work, however if you detached daemon from controlling tty (with --full-daemon for example).
There's some issue with log not being flushed while amuled is running, and this is to be fixed.
Logged

vdb

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 215
Re: Expand logging on amuled?
« Reply #2 on: August 01, 2005, 06:31:43 PM »

Ah, yes, that is what I do, run it with the -f option to have it detached so I can run it as a service from a startup script at boot time.

So my real question would then be: Can the logging be improved so that when using it as a detached daemon the logs will still be as complete as with the GUI or the non-detached amuled?
Logged
A waste is a terrible thing to mind.

lfroen

  • Guest
Re: Expand logging on amuled?
« Reply #3 on: August 02, 2005, 05:42:05 AM »

Quote
Can the logging be improved

Can, and will.
Logged

vdb

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 215
Re: Expand logging on amuled?
« Reply #4 on: August 02, 2005, 06:53:09 PM »

Thanks! Will be looking forward to this!
Logged
A waste is a terrible thing to mind.

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: Expand logging on amuled?
« Reply #5 on: August 02, 2005, 09:55:13 PM »

Well, most people don't like daemons/sevices messing up their screen with messages (if at all it is possible). However, the log is always there, despite that you can't see it. You can check it with the webserver, or by looking at the contents of ~/.aMule/logfile
Logged
concordia cum veritate

vdb

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 215
Re: Expand logging on amuled?
« Reply #6 on: August 03, 2005, 11:16:19 PM »

Not if you run it detached, the total content of my logfile is:
2005-08-01 21:49:21: Credit file loaded, 14142 clients are known
2005-08-01 21:49:21: Loaded ipfilter with 0 new IP addresses.

C'est tout.

As you can see there are no logs when you run it detached. If you can help me with a startup script that will run it from rc5.d at boot time, while still retaining the total log capability, please give me a hint. I tried some things, but it seems that only the "amuled -f" will really start from a startup script, otherwise it just keeps waiting for some input. Or I must be doing something wrong, in which case I am very open to help on this.   :)   (Oh btw, the "screen" command is not something I would like to start from the init scripts....)
Logged
A waste is a terrible thing to mind.

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Expand logging on amuled?
« Reply #7 on: August 04, 2005, 12:26:18 AM »

The logs are there. they're just not flushed.
Logged