Skip to content

Latest commit

 

History

History

log

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

#gracenode.log

###Access

var log = gracenode.log.create('nameToBeDisplayed');

###Configuration

{
	"modules":
		"log": {
			"type": "stdout" or "file",
			"color": true or false,
			"level": {
				"verbose": { "enabled": true or false, "path": "file path for the log file to be written (required if type is "file")" },
				"debug": { "enabled": true or false, "path": "file path for the log file to be written (required if type is "file")" },
				"info": { "enabled": true or false, "path": "file path for the log file to be written (required if type is "file")" },
				"warning": { "enabled": true or false, "path": "file path for the log file to be written (required if type is "file")" },
				"error": { "enabled": true or false, "path": "file path for the log file to be written (required if type is "file")" },
				"fatal": { "enabled": true or false, "path": "file path for the log file to be written (required if type is "file")" }
			}
		}
}

###API: verbose

void verbose(mixed data, [...])

###API: debug

void debug(mixed data, [...])

###API: info

void info(mixed data, [...])

###API: warning

void warning(mixed data, [...])

###API: error

void error(mixed data, [...])

###API: fatal

void fatal(mixed data, [...])