openLog

 

 

Overview

The openLog function writes the displayed string on the console to a new or an existing file. If the file is existing, it maybe cleared of its contents by having an argument clear:. If the file is existing by default it will append the displayed strings. Timestamps may or may not be written for each displayed line by having timing: or notiming: as an argument. Only one log may be opened for each context.

Usage

Use the openLog function to write the displayed console lines to a log file.

 

Syntax


Expression:

(openLog aFilename [options] [aNote])


Arguments Name Type Description
Argument:aFilenameString The name of the log file.
Argument:clear:Symbol Symbollic argument to clear an existing file before writing the log.
Argument:timing:Symbol Symbollic argument to include the timestamp on each line for the log.
Argument:notiming:Symbol Symbollic argument to not include the timestamp on each line for the log.
Argument:aNoteString Optional information to be written to the log.

Returns:

Returns the Boolean value true, or false if an error occurred. This function will also return false if a log file is already open.



 

Examples

Here are a number of links to Lambda coding examples which contain this instruction in various use cases.

 

Argument Types

Here are the links to the data types of the function arguments.

String Symbol

Here are also a number of links to functions having arguments with any of these data types.

++ += /= *=
-- -= addMethod appendWriteln
append apply balance binaryInsert
binarySearch boolean cdr character
clean closeLog code compareEQ
compareGE compareGT compareLE compareLT
compareNE compare comparison compress
cons count date day
days360 debugBrowsableProcs debugDetective debugEval
debug defchild defclass define(macro)
define defmacro defmethod deforphan
defriend defun delete dimension
disassemble display downcase encode
evalInSyncLocalContext eval exportCsv exportSbf
exportTab fileDir fileEraseDir fileExists
fileMakeDir fileReadAll fileReadRecord fileSizeOf
fileWriteAll find gc getGlobalValue
getSymbolTable globalBinding hashString hour
importCsv importSbf importTab insert
inside inspect integer isAtom
isBitVector isBoolean isByteVector isCharAlphabetic
isCharAlphanumeric isCharLowercase isCharName isCharNumeric
isCharUppercase isCharWhitespace isChar isCharacter
isComplex isDate isDictionary isDirectory
isEqual isError isFloatVector isIdentical
isInside isIntegerVector isInteger isLambda
isMatrix isMember isMoney isNumberMatrix
isNumberVector isNumber isObjectVector isObject
isPair isPcodeVector isString isStructure
isSymbol isText isType isVector
julian left length list
loadModule loadWorkspace lock macroReplace
makeQuotedList makeQuotedSymbol member methodsOf
mid minute money month
new number offset openLog
pair parent parse pointer
proplist proprecord putprop qt
ref remProp remove rename
replace rept right run
saveImmediate saveModule saveObject saveRepository
saveWorkspace second setCar setCdr
setLastCdr set setf setq
sizeof sort sql stringCiEQ
stringCiGE stringCiGT stringCiLE stringCiLT
stringCiNE stringFill stringToBVector stringToVector
string submit substitute substringCiEQ
substringCiGE substringCiGT substringCiLE substringCiLT
substringCiNE substringEQ substringFill substringGE
substringGT substringLE substringLT substringNE
substring svmRegression symbolToTypeCode symbol
system text time trim
type uniqueInsert unlock upcase
vectorFill writelg writeln year

Analytic Information Server (AIS)

AIS Component Systems

  • Smartbase Engine
  • QT C++ Libraries
  • MySQL Relational Database
  • AIS Lisp Libraries
  • Rapid Analytic Demo IDE