A simple repository that's meant to act as a demo of the functionality of the cog-server and cog-cli components.
npm install
cog load cog.json
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).
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.