Skip to content

A sample cog to help demonstrate cog-server and cog-cli

License

Notifications You must be signed in to change notification settings

bishopcais/sample-cog

Repository files navigation

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.

About

A sample cog to help demonstrate cog-server and cog-cli

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published