Documentation

Table of Contents

  1. Concept
    1. index.js
    2. Package Loader
  2. API Docs
    1. botanss
      1. Dragonfly
      2. utils
        1. WebParam
        2. CondStream
      3. net
        1. AppDomain
        2. Http
        3. HttpRequest
        4. WebFrame
      4. net.components
        1. Cookie

Concept

index.js

The index.js initiates Dragonfly logging module, the cluster module. After that, a servelet will be created by using:

new AppDomain( function( req, res )
{
    // The req, res here is identical to http.ClientRequest & http.ServerResponse
}, 5000 );
            

Package Loader

By loading package.js, global.botanLoader is automatically initiated.

require( "./BotanSS/package" );
var cl = global.botanLoader;

cl.load( "botanss.Dragonfly" );
            

API Docs

Dragonfly

Description

Dragonfly is the logging module for BotanSS

Methods

Debug( Messsage, Visibility )

Log the Message with level of Thermosphere

Info( Messsage, Visibility )

Log the Message with level of Stratosphere

Warning( Messsage, Visibility )

Log the Message with level of Hydrosphere

Error( Messsage, Visibility )

Log the Message with level of Lithosphere

Log( Messsage, Sphere, Visibility )

Log the Message within Sphere

Message

The message to log

Sphere

Any sphere under Dragonfly.Spheres

Visibility

Any visibility under Dragonfly.Visibility

Properties

Visibility

Log the Message within Sphere

VISIBLE

The message to log

HIDDEN

Any sphere under Dragonfly.Spheres

UNSEEN

Any visibility under Dragonfly.Visibility