Logo GenPRES

AgentLoggerDefaults Module

Default configurations for AgentLogger

Functions and values

Function or value Description

config

Full Usage: config

Returns: AgentLoggerConfig

Create a default configuration with console-only logging

Returns: AgentLoggerConfig

debug

Full Usage: debug

Returns: AgentLoggerConfig

Create default configuration for debugging

Returns: AgentLoggerConfig

defaultErrorHandler _arg1

Full Usage: defaultErrorHandler _arg1

Parameters:

Default error handler that prints to stderr

_arg1 : LoggingError

defaultFormatter msg

Full Usage: defaultFormatter msg

Parameters:
Returns: string

Default formatter that handles basic message types

msg : IMessage
Returns: string

highPerformance

Full Usage: highPerformance

Returns: AgentLoggerConfig

Create the default configuration for high-performance logging

Returns: AgentLoggerConfig

production

Full Usage: production

Returns: AgentLoggerConfig

Create the default configuration for production use

Returns: AgentLoggerConfig

withFlushInterval interval config

Full Usage: withFlushInterval interval config

Parameters:
Returns: AgentLoggerConfig

Create a configuration with a custom flush interval

interval : TimeSpan
config : AgentLoggerConfig
Returns: AgentLoggerConfig

withFlushThreshold threshold config

Full Usage: withFlushThreshold threshold config

Parameters:
Returns: AgentLoggerConfig

Create a configuration with a custom flush threshold

threshold : int
config : AgentLoggerConfig
Returns: AgentLoggerConfig

withFormatter formatter config

Full Usage: withFormatter formatter config

Parameters:
Returns: AgentLoggerConfig

Create a custom configuration with a specified formatter

formatter : IMessage -> string
config : AgentLoggerConfig
Returns: AgentLoggerConfig

withLevel level config

Full Usage: withLevel level config

Parameters:
Returns: AgentLoggerConfig

Create a configuration with a custom default level

level : Level
config : AgentLoggerConfig
Returns: AgentLoggerConfig

withMaxFlushInterval interval config

Full Usage: withMaxFlushInterval interval config

Parameters:
Returns: AgentLoggerConfig

Create a configuration with a custom maximum flush interval

interval : TimeSpan
config : AgentLoggerConfig
Returns: AgentLoggerConfig

withMaxMessages maxMessages config

Full Usage: withMaxMessages maxMessages config

Parameters:
Returns: AgentLoggerConfig

Create a configuration with a custom message limit

maxMessages : int option
config : AgentLoggerConfig
Returns: AgentLoggerConfig

withMinFlushInterval interval config

Full Usage: withMinFlushInterval interval config

Parameters:
Returns: AgentLoggerConfig

Create a configuration with a custom minimum flush interval

interval : TimeSpan
config : AgentLoggerConfig
Returns: AgentLoggerConfig

Type something to start searching.