Header menu logo Nu

Log Module

The synchronized global logging API.

Functions and values

Function or value Description

Log.custom header message

Full Usage: Log.custom header message

Parameters:
    header : string
    message : string

Log an custom log type with Trace.WriteLine. Thread-safe.

header : string
message : string

Log.error message

Full Usage: Log.error message

Parameters:
    message : string

Log an error message with Trace.WriteLine. Thread-safe.

message : string

Log.errorOnce message

Full Usage: Log.errorOnce message

Parameters:
    message : string

Log an error message once with Trace.WriteLine. Thread-safe.

message : string

Log.fail message

Full Usage: Log.fail message

Parameters:
    message : string

Returns: 'a

Log a failure message using Trace.Fail. Thread-safe.

message : string
Returns: 'a

Log.flush ()

Full Usage: Log.flush ()

Parameters:
    () : unit

Flush all log output streams. Thread-safe.

() : unit

Log.info message

Full Usage: Log.info message

Parameters:
    message : string

Log a purely informational message with Trace.WriteLine. Thread-safe.

message : string

Log.infoOnce message

Full Usage: Log.infoOnce message

Parameters:
    message : string

Log a purely informational message once with Trace.WriteLine. Thread-safe.

message : string

Log.init fileNameOpt

Full Usage: Log.init fileNameOpt

Parameters:
    fileNameOpt : string option

Initialize logging.

fileNameOpt : string option

Log.setLogSynchronously value

Full Usage: Log.setLogSynchronously value

Parameters:
    value : bool

Configure synchronous logging. Because logging is initialized _before_ Configure.fromAppConfig is called, this procedure is provided in order configure synchronous logging _after_ logging initialization.

value : bool

Log.warn message

Full Usage: Log.warn message

Parameters:
    message : string

Log a warning message with Trace.WriteLine. Thread-safe.

message : string

Log.warnOnce message

Full Usage: Log.warnOnce message

Parameters:
    message : string

Log a warning message once with Trace.WriteLine. Thread-safe.

message : string

Type something to start searching.