Skip to content

Documentation


Documentation / @blazetrails/actionpack / ActionController / LogSubscriber

Class: LogSubscriber ​

Defined in: packages/actionpack/lib/action-controller/log-subscriber.ts:16

Extends ​

Constructors ​

Constructor ​

new LogSubscriber(): LogSubscriber

Defined in: packages/activesupport/dist/log-subscriber.d.ts:37

Returns ​

LogSubscriber

Inherited from ​

LogSubscriber.constructor

Properties ​

eventLevels ​

eventLevels: Map<string, (logger) => boolean>

Defined in: packages/activesupport/dist/log-subscriber.d.ts:36

Inherited from ​

LogSubscriber.eventLevels


patterns ​

patterns: Map<string, Evented<Delegate>>

Defined in: packages/activesupport/dist/subscriber.d.ts:5

Inherited from ​

LogSubscriber.patterns


BLACK ​

readonly static BLACK: "\u001b[30m" = "\u001B[30m"

Defined in: packages/activesupport/dist/log-subscriber.d.ts:7

Inherited from ​

LogSubscriber.BLACK


BLUE ​

readonly static BLUE: "\u001b[34m" = "\u001B[34m"

Defined in: packages/activesupport/dist/log-subscriber.d.ts:11

Inherited from ​

LogSubscriber.BLUE


colorizeLogging ​

static colorizeLogging: boolean

Defined in: packages/activesupport/dist/log-subscriber.d.ts:15

Inherited from ​

LogSubscriber.colorizeLogging


CYAN ​

readonly static CYAN: "\u001b[36m" = "\u001B[36m"

Defined in: packages/activesupport/dist/log-subscriber.d.ts:13

Inherited from ​

LogSubscriber.CYAN


GREEN ​

readonly static GREEN: "\u001b[32m" = "\u001B[32m"

Defined in: packages/activesupport/dist/log-subscriber.d.ts:9

Inherited from ​

LogSubscriber.GREEN


LEVEL_CHECKS ​

readonly static LEVEL_CHECKS: Record<string, (logger) => boolean>

Defined in: packages/activesupport/dist/log-subscriber.d.ts:19

Inherited from ​

LogSubscriber.LEVEL_CHECKS


MAGENTA ​

readonly static MAGENTA: "\u001b[35m" = "\u001B[35m"

Defined in: packages/activesupport/dist/log-subscriber.d.ts:12

Inherited from ​

LogSubscriber.MAGENTA


MODES ​

readonly static MODES: Record<string, number>

Defined in: packages/activesupport/dist/log-subscriber.d.ts:6

Inherited from ​

LogSubscriber.MODES


RED ​

readonly static RED: "\u001b[31m" = "\u001B[31m"

Defined in: packages/activesupport/dist/log-subscriber.d.ts:8

Inherited from ​

LogSubscriber.RED


WHITE ​

readonly static WHITE: "\u001b[37m" = "\u001B[37m"

Defined in: packages/activesupport/dist/log-subscriber.d.ts:14

Inherited from ​

LogSubscriber.WHITE


YELLOW ​

readonly static YELLOW: "\u001b[33m" = "\u001B[33m"

Defined in: packages/activesupport/dist/log-subscriber.d.ts:10

Inherited from ​

LogSubscriber.YELLOW

Accessors ​

colorizeLogging ​

Get Signature ​

get colorizeLogging(): boolean

Defined in: packages/activesupport/dist/log-subscriber.d.ts:39

Returns ​

boolean

Set Signature ​

set colorizeLogging(value): void

Defined in: packages/activesupport/dist/log-subscriber.d.ts:40

Parameters ​
ParameterType
valueboolean
Returns ​

void

Inherited from ​

LogSubscriber.colorizeLogging


logger ​

Get Signature ​

get static logger(): Logger | null

Defined in: packages/activesupport/dist/log-subscriber.d.ts:21

Returns ​

Logger | null

Set Signature ​

set static logger(value): void

Defined in: packages/activesupport/dist/log-subscriber.d.ts:22

Parameters ​
ParameterType
valueLogger | null
Returns ​

void

Inherited from ​

LogSubscriber.logger


logLevels ​

Get Signature ​

get static logLevels(): Map<string, (logger) => boolean>

Defined in: packages/activesupport/dist/log-subscriber.d.ts:16

Returns ​

Map<string, (logger) => boolean>

Set Signature ​

set static logLevels(value): void

Defined in: packages/activesupport/dist/log-subscriber.d.ts:17

Parameters ​
ParameterType
valueMap<string, (logger) => boolean>
Returns ​

void

Inherited from ​

LogSubscriber.logLevels


subscribers ​

Get Signature ​

get static subscribers(): Subscriber[]

Defined in: packages/activesupport/dist/subscriber.d.ts:16

Returns ​

Subscriber[]

Inherited from ​

LogSubscriber.subscribers

Methods ​

call() ​

call(event): void

Defined in: packages/activesupport/dist/log-subscriber.d.ts:43

Parameters ​

ParameterType
eventNotificationEvent

Returns ​

void

Inherited from ​

LogSubscriber.call


color() ​

protected color(text, color, modeOptions?): string

Defined in: packages/activesupport/dist/log-subscriber.d.ts:51

Parameters ​

ParameterType
textstring
colorstring | symbol
modeOptions?Record<string, boolean>

Returns ​

string

Inherited from ​

LogSubscriber.color


debug() ​

protected debug(progname?, block?): boolean | null

Defined in: packages/activesupport/dist/log-subscriber.d.ts:46

Parameters ​

ParameterType
progname?string | null
block?() => string

Returns ​

boolean | null

Inherited from ​

LogSubscriber.debug


error() ​

protected error(progname?, block?): boolean | null

Defined in: packages/activesupport/dist/log-subscriber.d.ts:48

Parameters ​

ParameterType
progname?string | null
block?() => string

Returns ​

boolean | null

Inherited from ​

LogSubscriber.error


expireFragment() ​

expireFragment(event): void

Defined in: packages/actionpack/lib/action-controller/log-subscriber.ts:129

Parameters ​

ParameterType
eventNotificationEvent

Returns ​

void


fatal() ​

protected fatal(progname?, block?): boolean | null

Defined in: packages/activesupport/dist/log-subscriber.d.ts:49

Parameters ​

ParameterType
progname?string | null
block?() => string

Returns ​

boolean | null

Inherited from ​

LogSubscriber.fatal


haltedCallback() ​

haltedCallback(event): void

Defined in: packages/actionpack/lib/action-controller/log-subscriber.ts:69

Parameters ​

ParameterType
eventNotificationEvent

Returns ​

void


info() ​

protected info(progname?, block?): boolean | null

Defined in: packages/activesupport/dist/log-subscriber.d.ts:45

Parameters ​

ParameterType
progname?string | null
block?() => string

Returns ​

boolean | null

Inherited from ​

LogSubscriber.info


isExistFragment() ​

isExistFragment(event): void

Defined in: packages/actionpack/lib/action-controller/log-subscriber.ts:122

Parameters ​

ParameterType
eventNotificationEvent

Returns ​

void


isSilenced() ​

isSilenced(event): boolean

Defined in: packages/activesupport/dist/log-subscriber.d.ts:42

Parameters ​

ParameterType
eventstring | NotificationEvent

Returns ​

boolean

Missing Rails Call ​

call — PERMANENT

Inherited from ​

LogSubscriber.isSilenced


processAction() ​

processAction(event): void

Defined in: packages/actionpack/lib/action-controller/log-subscriber.ts:43

Parameters ​

ParameterType
eventNotificationEvent

Returns ​

void


publishEvent() ​

publishEvent(event): void

Defined in: packages/activesupport/dist/log-subscriber.d.ts:44

Parameters ​

ParameterType
eventNotificationEvent

Returns ​

void

Inherited from ​

LogSubscriber.publishEvent


readFragment() ​

readFragment(event): void

Defined in: packages/actionpack/lib/action-controller/log-subscriber.ts:115

Parameters ​

ParameterType
eventNotificationEvent

Returns ​

void


redirectTo() ​

redirectTo(event): void

Defined in: packages/actionpack/lib/action-controller/log-subscriber.ts:83

Parameters ​

ParameterType
eventNotificationEvent

Returns ​

void


sendData() ​

sendData(event): void

Defined in: packages/actionpack/lib/action-controller/log-subscriber.ts:87

Parameters ​

ParameterType
eventNotificationEvent

Returns ​

void


sendFile() ​

sendFile(event): void

Defined in: packages/actionpack/lib/action-controller/log-subscriber.ts:76

Parameters ​

ParameterType
eventNotificationEvent

Returns ​

void


startProcessing() ​

startProcessing(event): void

Defined in: packages/actionpack/lib/action-controller/log-subscriber.ts:22

Parameters ​

ParameterType
eventNotificationEvent

Returns ​

void


unknown() ​

protected unknown(progname?, block?): boolean | null

Defined in: packages/activesupport/dist/log-subscriber.d.ts:50

Parameters ​

ParameterType
progname?string | null
block?() => string

Returns ​

boolean | null

Inherited from ​

LogSubscriber.unknown


unpermittedParameters() ​

unpermittedParameters(event): void

Defined in: packages/actionpack/lib/action-controller/log-subscriber.ts:94

Parameters ​

ParameterType
eventNotificationEvent

Returns ​

void


warn() ​

protected warn(progname?, block?): boolean | null

Defined in: packages/activesupport/dist/log-subscriber.d.ts:47

Parameters ​

ParameterType
progname?string | null
block?() => string

Returns ​

boolean | null

Inherited from ​

LogSubscriber.warn


writeFragment() ​

writeFragment(event): void

Defined in: packages/actionpack/lib/action-controller/log-subscriber.ts:108

Parameters ​

ParameterType
eventNotificationEvent

Returns ​

void


attachTo() ​

static attachTo(namespace, subscriber?, notifier?, options?): string[]

Defined in: packages/activesupport/dist/log-subscriber.d.ts:25

Parameters ​

ParameterType
namespacestring
subscriber?Subscriber
notifier?typeof Notifications
options?{ inheritAll?: boolean; }
options.inheritAll?boolean

Returns ​

string[]

Inherited from ​

LogSubscriber.attachTo


detachFrom() ​

static detachFrom(namespace, notifier?): void

Defined in: packages/activesupport/dist/subscriber.d.ts:14

Parameters ​

ParameterType
namespacestring
notifier?typeof Notifications

Returns ​

void

Inherited from ​

LogSubscriber.detachFrom


fetchPublicMethods() ​

protected static fetchPublicMethods(subscriber, inheritAll): string[]

Defined in: packages/activesupport/dist/log-subscriber.d.ts:34

Parameters ​

ParameterType
subscriberSubscriber
inheritAllboolean

Returns ​

string[]

Missing Rails Args ​

public_instance_methods — PERMANENT

Inherited from ​

LogSubscriber.fetchPublicMethods


flushAllBang() ​

static flushAllBang(): void

Defined in: packages/activesupport/dist/log-subscriber.d.ts:24

Returns ​

void

Inherited from ​

LogSubscriber.flushAllBang


logSubscribers() ​

static logSubscribers(): Subscriber[]

Defined in: packages/activesupport/dist/log-subscriber.d.ts:23

Returns ​

Subscriber[]

Inherited from ​

LogSubscriber.logSubscribers


methodAdded() ​

static methodAdded(event): void

Defined in: packages/activesupport/dist/subscriber.d.ts:15

Parameters ​

ParameterType
eventstring

Returns ​

void

Inherited from ​

LogSubscriber.methodAdded