AvnFPS has an extensive logging system, similar to collective logging in AWIPS. The amount of information written to log files and its format are configurable.
Each program has its own log file, one per day of the week. File naming is
according to the scheme
progname_DayOfWeek,
so avndis will produce files
avndis_Mon through avndis_Sun.
Files are broken (old closed, new opened) at the first write attempt of each new day.
This is different from AWIPS where a cron job breaks the log after 00Z.
The file etc/logging.cfg
controls the location, format and log level for the log files.
The format and log level is the same for all programs.
![]() | Note |
|---|---|
The log directory is local to each server/workstation.
The directory
|
Here is an example listing of a log file for avndis:
Log rollover at 00:00:01
2006-03-01 00:00:01,280 DEBUG [10517:126217136] TriggerThread: Processing PHLMTRMDT
2006-03-01 00:00:01,647 INFO [10517:126217136] TextThreadP: Processed KMDT from SAUS70 KMDT 080000
2006-03-01 00:00:01,647 DEBUG [10517:126217136] TriggerThread: Done PHLMTRMDT
2006-03-01 00:00:01,649 DEBUG [10517:126217136] TriggerThread: Processing PITMTRDUJ
2006-03-01 00:00:01,656 DEBUG [10517:27261872] DataIngestServ: Msg: {'src': 'mtrs', 'ident': 'KMDT'}
2006-03-01 00:00:01,754 INFO [10517:126217136] TextThreadP: Processed KDUJ from SAUS70 KDUJ 080000
2006-03-01 00:00:01,755 DEBUG [10517:126217136] TriggerThread: Done PITMTRDUJ
2006-03-01 00:00:01,756 DEBUG [10517:126217136] TriggerThread: Processing BUFMTRART
2006-03-01 00:00:01,981 DEBUG [10517:27261872] DataIngestServ: Msg: {'src': 'mtrs', 'ident': 'KDUJ'}
2006-03-01 00:00:01,989 INFO [10517:126217136] TextThreadP: Processed KART from SAUS70 KART 080000
2006-03-01 00:00:01,990 DEBUG [10517:126217136] TriggerThread: Done BUFMTRART
2006-03-01 00:00:01,993 DEBUG [10517:27261872] DataIngestServ: Msg: {'src': 'mtrs', 'ident': 'KART'}
2006-03-01 00:00:05,289 DEBUG [10517:126217136] TriggerThread: Processing HFOMTRHNY
2006-03-01 00:00:05,576 INFO [10517:101030832] LtgThread: Processing file /data/fxa/point/binLightning/netcdf/20060228_2300
2006-03-01 00:00:05,629 INFO [10517:126217136] TextThreadP: Processed PHNY from SAUS80 PHNY 080000
2006-03-01 00:00:05,631 DEBUG [10517:126217136] TriggerThread: Done HFOMTRHNY
2006-03-01 00:00:05,633 DEBUG [10517:126217136] TriggerThread: Processing BUFMTRROC
2006-03-01 00:00:06,020 DEBUG [10517:27261872] DataIngestServ: Msg: {'src': 'mtrs', 'ident': 'PHNY'}
Each line contains the following fields:
Date and time of the event.
Severity level (in caps).
Process and thread number (in square brackets).
Python module name which generated the message.
Actual message content.
Some typical errors:
2005-07-08 02:00:48,843 INFO [10517:84941744] MosData: Retrieved ngm data for BUF 2005-07-08 02:00:48,851 ERROR [10517:84941744] MosData: BVI not in /data/fxa/point/mos/NGM/netcdf/20050708_00002005-07-08 02:00:48,882 INFO [10517:84941744] MosData: Retrieved ngm data for CHA 2005-07-08 05:32:52,556 DEBUG [10517:126217136] TriggerThread: Done MEMTAFTRI 2005-07-08 05:32:52,558 WARNING [10517:74451888] util: Daemon ** Exception during processing of request from TCPConnection with ('xxx.xxx.xxx.xxx', 45051) connected=1 type thread.error
--- traceback of this exception follows: -------------------------------------------------- <thread.error> RAISED : can't start new thread Extended Stacktrace follows (most recent call last) -------------------------------------------------- File "/awips/adapt/avnfps/Python-2.4.1/lib/python2.4/site-packages/Pyro/protocol.py", line (922), in Daemon::connectionHandler Source code: self.handleInvocation(conn) File "/awips/adapt/avnfps/Python-2.4.1/lib/python2.4/site-packages/Pyro/core.py", line (695), in Daemon::handleInvocation Source code: