Differences between revisions 25 and 41 (spanning 16 versions)
Revision 25 as of 2011-01-23 08:58:29
Size: 2640
Editor: KaiJaeger
Comment: History replaced by ProjectPage
Revision 41 as of 2018-03-03 11:41:35
Size: 129
Editor: KaiJaeger
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= Managing Log Files = = Logger: Managing Log Files =
Line 3: Line 3:
{{{Logger}}} is part of the CategoryAplApl project.

<<TableOfContents>>

== Overview ==

This class offers methods useful to write and manage ordinary ANSI log files. In case any non-ANSI chars are part of a message, these characters are replaced by question marks.

By default, the class creates a log file as an ordinary ANSI file with the name "yyyymmdd.txt". When a new day puts in an appearance, this file is closed and a new one is opened automatically.

Instead of accepting the defaults you can also let the class create "yyyymm.txt" files or even "yyyy.txt".

The main function, '''Log''', creates entries as such:

{{{
20080721115636 *** Log File opened
20080721115636 (1) 127.0.0.1:2152 has connected
}}}

The number between the brackets (1) is the thread number. The number is not reported for thread number 0.

Note that the class makes intense use of error trapping to make sure that a problem in the Logger class will not effect the hosting application.

== Constructors, Methods and Properties ==

{{{
Constructors:
  make1(active_)
  make2(active_ path_)
  make3(active_ path_ type_)
  make4(active_ path_ type_ debug_)
  make5(active_ path_ type_ debug_ refToWinFile_)
  make6(active_ path_ type_ debug_ refToWinFile_ refToUtils_)
  make7(active_ path_ type_ debug_ refToWinFile_ refToUtils_ timestamp_)
Instance Properties:
  active
  autoReOpen
  debug
  errorCounter (ReadOnly)
  errorPrefix
  extension
  filename (ReadOnly)
  filenameDescriptor (ReadOnly)
  filenamePostfix
  filenamePrefix
  filenameType
  path (ReadOnly)
  printToSession
  refToUtils
  refToWinFile
  timestamp
Instance Methods:
  Log
  LogError
Shared Methods:
  Version
}}}


== Project Page ==

For bug reports, future enhancements and a full version history see [[Logger/ProjectPage]]

== Version Information ==

||Original author:||KaiJaeger||
||Responsible:||KaiJaeger||
||Email:||kai@aplteam.com||
||Current state:||1.4.0||

== Download ==

You have two options: you can either download the script for usage:

[[http://aplwiki.com/Logger?action=AttachFile&do=get&target=Logger.ZIP | Download Logger script right now]]

or get the whole thing from the AplWikiRepository, including the development workspace and the script and maybe more for any development or for running the test cases:

{{{
svn list svn://aplteam.com/os/dyalog/Logger/tags
}}}

If you plan to contribute please note that all stuff published as part of the APLAPL project must follow certain [[AplAplStandards|APLAPL-specific standards]].

----
CategoryAplApl
The project has been relocated to [[https://github.com/aplteam/Markdown2Help]] on 2018-03-03.

Logger: Managing Log Files

The project has been relocated to https://github.com/aplteam/Markdown2Help on 2018-03-03.

Logger (last edited 2018-03-03 11:41:35 by KaiJaeger)