This is part of the Fake.Runtime module.

Trace

This module contains function which allow to trace build output

Nested types and modules

TypeDescription
ConsoleTraceListener

Implements a TraceListener for System.Console.

FAKEException
ITraceListener

Defines a TraceListener interface

TraceData

Defines Tracing information for TraceListeners

VerboseLevel

Functions and values

Function or valueDescription
colorMap(traceData)
Signature: traceData:TraceData -> ConsoleColor

A default color map which maps TracePriorities to ConsoleColors

defaultConsoleTraceListener
Signature: ITraceListener

The default TraceListener for Console.

fakePath
Signature: string

Gets the path of the current FAKE instance

listeners
Signature: List<ITraceListener>

A List with all registered listeners

log(message)
Signature: message:string -> unit

Logs the specified string

postMessage(x)
Signature: x:TraceData -> unit

Allows to post messages to all trace listeners

trace(message)
Signature: message:string -> unit

Writes a trace to the command line (in green)

traceError(error)
Signature: error:string -> unit

Traces an error (in red)

tracef(fmt)
Signature: fmt:StringFormat<'?16215,unit> -> '?16215
Type parameters: '?16215

Writes a message to the command line (in green) and without a line break

traceFAKE(fmt)
Signature: fmt:StringFormat<'a,unit> -> 'a
Type parameters: 'a

Writes a trace to the command line (in yellow)

tracefn(fmt)
Signature: fmt:StringFormat<'a,unit> -> 'a
Type parameters: 'a

Writes a message to the command line (in green)