Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Oct 1999 20:16:32 +0200 (METDST)
From:      hm@hcs.de (Hellmuth Michaelis)
To:        isdn@FreeBSD.ORG
Subject:   i4b log message format (was: Re: Setting up i4b)
Message-ID:  <m11Yvc8-0003lSC@hcswork.hcs.de>
In-Reply-To: <19991005223532.A14469@server.nostromo.in-berlin.de> from "H. Eckert" at "Oct 5, 99 10:35:32 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
From the keyboard of H. Eckert:

> > Why do you want to do that ? There seems to be a misunderstanding.
> 
> If I have matching entries, I can transform "<unknown>" into something
> shorter, thus being able to see the complete number that is called.
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 
> >> 04.10.1999 01:15:28 DBG entry 2: name = HE
> >> 04.10.1999 01:15:28 DBG entry 2: usrdevicename = tel
> >> 04.10.1999 01:15:28 DBG entry 2: usrdeviceunit = 1
> >> 04.10.1999 01:15:28 DBG entry 2: isdncontroller = 0
> >> 04.10.1999 01:15:28 DBG entry 2: isdnchannel = any
> >> 04.10.1999 01:15:28 DBG entry 2: local_phone_incoming = 3021478443
> >> 04.10.1999 01:15:28 DBG entry 2: remote_phone_incoming #0 = *
> >> 04.10.1999 01:15:28 DBG entry 2: dialin_reaction = ignore
> >> 04.10.1999 01:15:28 DBG entry 2: answerprog = answer
> >> 04.10.1999 01:15:28 DBG entry 2: b1protocol = raw
> >> 04.10.1999 01:15:28 DBG entry 2: direction = in
> >> 04.10.1999 01:18:22 CHD 00081 <unknown> incoming call from 3021478443 to 2147844
> 
> Trouble is - it *doesn't* work.  I defined an entry for a voice call
> on my MSN and it's still "<unknown>".
> 
> > Please read the above text again and then tell me a better solution what
> > to display instead of "<unknown>" for incoming calls not having an
> > entry section!
> 
> How about the old bisdn output format: "not my number (dst:21478453 src:)" ?

Ahh, so you want to exchange the "<unknown>" against something shorter
to see (more of) one or both numbers, is that correct ?

So lets see:

04.10.1999 01:18:22 CHD 00081 <unknown> incoming call from 3021478443 to 2147844

the format is fixed, because it should be easily parsable, we have:

^^^^^^^^^^ ^^^^^^^^ ^^^ ^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ....
date       time     typ id    entry     message

I could do

04.10.1999 01:18:22 CHD 00081 <unknown> src 3021478443 dst 2147844, incoming call

now think about this

04.10.1999 01:18:22 CHD 00081 <unknown> src 0123456789012345 dst 0123456789012345, incoming call

Numbers - IIRC - can be 15 digits max, so the next one will ask, is this an
incoming or outgoing call ?

I know, this is an extreme example, but my point is that its not done with
some change here or there (because then you are satisfied, but its likely
that someone else will get a different problem).

Before touching this, please think about it a bit more. What do you want to
accomplish ? Should all messages fit into 80 chars ? Is date, time, type
and so on really necessary, are there shorter alternatives ? Would a
continuation line do it:

04.10.1999 01:18:22 CHD 00081 <unknown> incoming call:
                                        from: 0123456789012345 
                                          to: 0123456789012345

Should the user be somehow able to customize the log messages via a
line in the isdnd.rc system section, like

	log-format = "%D %T %t %i %n from %s to %d"

or so ?

Or extend the message format to a:

date, time, typ, id, entry, src (if available), dst (if available), message 

format ?

I want the log message format to be consistent and easily parsable by 
default. Second, i'd like to touch the area of log messages only once
again in the future and then never again, because i did it once and this
is a huge and boring amount of work which brings us near to nothing
(given that there are huge sppp problems, new chipsets, i4b does not
 work in -current due to architecture changes, etc, etc, etc.).

In case you want to change log messages, please do some research, make
a good proposal and after some discussion i'm happily expecting diffs ;-)

hellmuth
-- 
Hellmuth Michaelis                                    Tel   +49 40 559747-70
HCS Hanseatischer Computerservice GmbH                Fax   +49 40 559747-77
Oldesloer Strasse 97-99                               Mail  hm [at] hcs.de
22457 Hamburg                                         WWW   http://www.hcs.de


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isdn" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?m11Yvc8-0003lSC>