-
Notifications
You must be signed in to change notification settings - Fork 7
Configuration
David Pauli edited this page Aug 15, 2016
·
1 revision
It's very easy to use and configure the SDK. For configuring everything you can create a config.json file in the via git cloned folder, in parallel to the PHP archive file or vendor folder.
This is a example configuration structure.
{
"logging":
{
"level": "NOTIFICATION",
"output": "SCREEN",
"outputfile": null
},
"formatting":
{
"image":
{
"formatters": ["IMAGE", "NEWLINE"],
"classes": ["testClass1", "testClass2"],
"id": "testID",
"attributes":
{
"testAttribute1": "testValue1",
"testAttribute2": "testValue2"
}
},
"bold":
{
"formatters": ["BOLD", "NEWLINE"],
"classes": ["testClass1", "testClass2"],
"id": "testID",
"attributes":
{
"testAttribute1": "testValue1",
"testAttribute2": "testValue2"
}
}
}
}
The internal Logger could be preconfigured via the logging object. You can find everything about this in the Logging section.
This SDK can preformat every attribute easily. Defining these Formatters are made in the formatters JSON object. You can find description about Formatting in the correct wiki section.