Skip to content

Instantly share code, notes, and snippets.

@lbogdan
lbogdan / log.js
Created May 31, 2017 19:44
Generic log level
var logLevels = {
error: {
prio: 0, // lower has priority
method: "error"
},
warning: {
prio: 1,
method: "warn"
},
info: {
luck@hhvm-dev:~/dev/facebook/hhvm$ hphp/hhvm/hhvm --version
HipHop VM 3.1.0-dev (dbg)
Compiler: heads/master-0-gd8a76b38834df17dea1faf1901b13d8e68ba04a3
Repo schema: b95de36ef533ec293e848834591b8ca6834c99ba
luck@hhvm-dev:~/dev/facebook/hhvm$ cat test1.php
<?php
namespace Test;
root@player:~# cd /usr/src
root@player:/usr/src# apt-get install -y golang
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
golang-doc golang-go golang-go-linux-amd64 golang-src
Suggested packages:
golang-go.tools
The following NEW packages will be installed: