Kbase 15105: How to remove "login" and "logout" from the .lg file
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  5/10/1998 |
|
How to remove "login" and "logout" from the .lg file
If you want to reduce the number of lines in a log file
before faxing it to Technical Support by removing the
"LOGIN" and "LOGOUT" messages, you can do so by using the
following steps. However, please note this information
should not be removed if you are tracking a problem with
a particular user. Also, please remember that .lg files
should not be edited in any other fashion, as you may
be removing information that was seemingly useless, but
actually was related to the problem.
def variable x as character format "X(80)".
/* run quoter, creating a quote delimited .lg file */
UNIX VALUE(SEARCH("quoter")) my-db.lg >quoted.lg.
or
DOS quoter my-db.lg >quoted.lg.
or
VMS PROGRESS/TOOLS=QUOTER/OUTPUT=quoted.lg my-db.lg.
BTOS VALUE (SEARCH("quoter.run")) my-db.lg >quoted.lg.
/* Then, process the quoted database log file */
input from quoted.lg.
output to final.lg.
repeat:
import x.
if x matches "*login*" or x matches "*logout*" then next.
else
export x.
end.
This should result in a .lg file that is quoted, and
has all the login and logout entries removed (named final.lg).
Progress Software Technical Support Note # 15105