Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 793 Bytes

README.md

File metadata and controls

26 lines (17 loc) · 793 Bytes

sample-cog

A simple repository that's meant to act as a demo of the functionality of the cog-server and cog-cli components.

Installation

npm install

Usage

cog load cog.json

Adding Console Outputs

In your browser, go to http://localhost:11223/log/{level} where {level} is an integer between 0 - 3. This will print a colored message to the console of different log levels (error, warn, info, debug).

Signal Handling

The sample-cog contains code to demonstrate the signal handling of the three types cog-server surfaces (SIGUSR1, SIGUSR2, and SIGHUP) where all three will print out a message to the console, and the final one will cause the cog to stop.