Object

ca.bwbecker.facades.jsnlog

GeneralOptions

Related Doc: package jsnlog

Permalink

object GeneralOptions extends GeneralOptionsBuilder

Set options on the library as a whole, typically during initialization.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GeneralOptions
  2. GeneralOptionsBuilder
  3. JSOptionBuilder
  4. JSOptionSetter
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clientIP(v: String): GeneralOptionsBuilder

    Permalink

    The IP address of the browser.

    The IP address of the browser. Used with the ipRegex option of loggers and appenders.

    Definition Classes
    GeneralOptionsBuilder
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def copy(newDict: OptMap): GeneralOptionsBuilder

    Permalink
    Definition Classes
    GeneralOptionsBuilder → JSOptionBuilder
  8. def defaultAjaxUrl(v: String): GeneralOptionsBuilder

    Permalink

    Default url used by ajax appenders when no url is set.

    Default url used by ajax appenders when no url is set.

    Provides the default url if no url is set on the AjaxAppender setOptions Method. Also sets the url for the default appender.

    If defaultAjaxUrl is not set, the url /jsnlog.logger is used.

    Definition Classes
    GeneralOptionsBuilder
  9. def defaultBeforeSend(v: Function2[XMLHttpRequest, String, Unit]): GeneralOptionsBuilder

    Permalink

    Sets a beforeSend method for all Ajax Appenders.

    Sets a beforeSend method for all Ajax Appenders.

    The beforeSend field lets you set a function that is called right before an AJAX request with log messages is sent to the server. It receives these parameters:

    xhr XMLHttpRequest object used to send the request. Allows you to for example add your own request headers. json Message to be sent. Allows you to modify this message before it is sent. See below.

    Definition Classes
    GeneralOptionsBuilder
  10. val dict: OptMap

    Permalink
    Definition Classes
    GeneralOptionsBuilder → JSOptionBuilder
  11. def enabled(v: Boolean): GeneralOptionsBuilder

    Permalink

    If false, all loggers are disabled.

    If false, all loggers are disabled.

    Definition Classes
    GeneralOptionsBuilder
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. def jsOpt(name: String, opt: Any): GeneralOptionsBuilder

    Permalink
    Attributes
    protected
    Definition Classes
    JSOptionBuilder → JSOptionSetter
  19. def maxMessages(v: Int): GeneralOptionsBuilder

    Permalink

    Limits total number of messages sent to the server.

    Limits total number of messages sent to the server.

    You use maxMessages to limit the number of messages sent to the server. When you set maxMessages via a call to setOptions, a counter is set to maxMessages. Each time messages are sent to the server, that counter is decremented by the number of messages sent. When the counter gets to zero or below, no more messages will be sent.

    However, this is affected by batching and buffering.

    Take a situation where maxMessages is set to 5 and 2 messages have already been sent - so the message counter is now 3. If 8 messages had been stored in a buffer and those messages are now sent, they will be all sent. That means the server will receive a total of 2 + 8 = 10 messages. After this, no more messages will be sent, because the number of messages sent (10) exceeds maxMessages (5).

    This means that maxMessages is not a precise limit on the number of messages sent to the server. On the other hand, buffered messages are sent together in a single request to the server, minimizing bandwidth. And buffered messages are often useful in solving exceptions, so there is value in receiving them.

    Definition Classes
    GeneralOptionsBuilder
  20. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. def requestId(v: String): GeneralOptionsBuilder

    Permalink

    Sent with all log messages to the server, so make it easier to identify all log messages for a given request (details).

    Sent with all log messages to the server, so make it easier to identify all log messages for a given request (details).

    Definition Classes
    GeneralOptionsBuilder
  24. def serialize(v: Function1[Object, String]): GeneralOptionsBuilder

    Permalink

    Method used to turn objects into strings.

    Method used to turn objects into strings.

    When you log an object, it needs to be turned into a string. This field lets you set the method used to do this.

    If you do not set this field, by default the standard method JSON.stringify is used.

    Your method has to take the object as a parameter and return the string:

    serialize(object: any): string

    A major reason to use your own method is to deal with objects with cyclic references. That is, objects that refer to themselves (details).

    Definition Classes
    GeneralOptionsBuilder
  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  26. def toString(): String

    Permalink
    Definition Classes
    JSOptionBuilder → AnyRef → Any
  27. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from GeneralOptionsBuilder

Inherited from JSOptionBuilder[GeneralOptions, GeneralOptionsBuilder]

Inherited from JSOptionSetter[GeneralOptions, GeneralOptionsBuilder]

Inherited from AnyRef

Inherited from Any

Ungrouped