Permalink
Browse files

Move website to MkDocs

  • Loading branch information...
1 parent a7fec84 commit 5a580dd6d1afc86d122d168eb382af65438d2219 @loicsaintroch loicsaintroch committed Apr 4, 2016
Showing with 2,166 additions and 1,450 deletions.
  1. +7 −0 .gitignore
  2. +3 −0 Makefile
  3. +20 −27 README.md
  4. +0 −73 docs/README.md
  5. +0 −44 docs/configuration/bodyParser.md
  6. +0 −34 docs/configuration/favicon.md
  7. +0 −30 docs/configuration/gzip.md
  8. +0 −115 docs/configuration/logging.md
  9. +0 −26 docs/configuration/responseTime.md
  10. +0 −30 docs/configuration/static.md
  11. +0 −55 docs/security/cors.md
  12. +0 −40 docs/security/csp.md
  13. +0 −35 docs/security/csrf.md
  14. +0 −36 docs/security/hsts.md
  15. +0 −41 docs/security/ip.md
  16. +0 −27 docs/security/p3p.md
  17. +0 −29 docs/security/proxy.md
  18. +0 −36 docs/security/ssl.md
  19. +0 −27 docs/security/xframe.md
  20. +0 −36 docs/security/xss.md
  21. +0 −78 docs/sql/raw.md
  22. +0 −41 docs/start/anatomy.md
  23. +0 −55 docs/start/api.md
  24. +0 −59 docs/start/configuration.md
  25. +0 −24 docs/start/creation.md
  26. +0 −74 docs/start/install-nodejs.md
  27. +0 −29 docs/start/repl.md
  28. +73 −0 mkdocs.yml
  29. +8 −5 package.json
  30. +1 −3 {docs → website/documentation}/advanced/errors.md
  31. +5 −7 {docs → website/documentation}/advanced/events.md
  32. +2 −4 {docs → website/documentation}/advanced/generators.md
  33. +2 −4 {docs → website/documentation}/advanced/hooks.md
  34. +339 −0 website/documentation/advanced/security.md
  35. +261 −0 website/documentation/architecture/configuration.md
  36. +1 −3 {docs/basics → website/documentation/architecture}/context.md
  37. +5 −5 {docs/basics → website/documentation/architecture}/databases.md
  38. +1 −3 {docs/basics → website/documentation/architecture}/request.md
  39. +1 −3 {docs/basics → website/documentation/architecture}/response.md
  40. +2 −4 {docs/basics → website/documentation/architecture}/router.md
  41. +3 −4 {docs/basics → website/documentation/architecture}/views.md
  42. +35 −37 {docs/features → website/documentation/concepts}/authentication.md
  43. +7 −9 {docs/features → website/documentation/concepts}/cron.md
  44. +7 −6 {docs/features → website/documentation/concepts}/graphql.md
  45. +3 −4 {docs/features → website/documentation/concepts}/internationalization.md
  46. +1 −3 {docs/features → website/documentation/concepts}/jsonapi.md
  47. +3 −4 {docs/security → website/documentation/concepts}/policies.md
  48. +1 −3 {docs/features → website/documentation/concepts}/services.md
  49. +3 −4 {docs/features → website/documentation/concepts}/sessions.md
  50. +117 −0 website/documentation/concepts/views.md
  51. +3 −5 {docs/features → website/documentation/concepts}/websockets.md
  52. +9 −3 docs/start/install-strapi.md → website/documentation/prologue/installation.md
  53. +147 −0 website/documentation/prologue/start.md
  54. +31 −0 website/documentation/prologue/why.md
  55. +55 −34 {docs → website/documentation}/sql/interfaces.md
  56. +6 −9 {docs → website/documentation}/sql/migrations.md
  57. +9 −14 {docs → website/documentation}/sql/models.md
  58. +3 −12 {docs → website/documentation}/sql/orm.md
  59. +343 −157 {docs → website/documentation}/sql/queries.md
  60. +76 −0 website/documentation/sql/raw.md
  61. 0 website/index.md
  62. +41 −0 website/info/conduct.md
  63. +20 −0 website/info/governance.md
  64. +19 −0 website/info/licenses.md
  65. +56 −0 website/info/releases.md
  66. +19 −0 website/info/security.md
  67. +16 −0 website/info/support.md
  68. +19 −0 website/info/trademarks.md
  69. +31 −0 website/theme/base.html
  70. +98 −0 website/theme/css/github.css
  71. +160 −0 website/theme/css/strapi.css
  72. +34 −0 website/theme/docs.html
  73. +22 −0 website/theme/footer.html
  74. BIN website/theme/img/favicon.ico
  75. BIN website/theme/img/favicon.png
  76. BIN website/theme/img/logo-dark.png
  77. BIN website/theme/img/logo-light.png
  78. +17 −0 website/theme/js/messy.js
  79. +9 −0 website/theme/landing.html
  80. +12 −0 website/theme/toc.html
View
@@ -100,3 +100,10 @@ node_modules
testApp
coverage
+
+
+############################
+# Builds
+############################
+
+packages/strapi-generate-new/files/public/
View
@@ -9,3 +9,6 @@ lint:
test: lint
./scripts/test.sh
+
+docs:
+ mkdocs build --clean
View
@@ -7,13 +7,11 @@
## Why Strapi ?
-At [Wistity](http://wistity.co), everything we do we believe in changing the status quo of web development.
+> At [Wistity](http://wistity.co), everything we do we believe in changing the status quo of web development. Our products are simple to use, user friendly and production-ready.
-The way we challenge the status quo of web development is by making our products simple to use, user friendly and production-ready.
+Web and mobile applications needed a powerful, simple to use and production-ready API-driven framework. That's why we created Strapi, an open-source [Node.js](https://nodejs.org/) rich framework for building applications and services.
-To reach our goals, we needed to create [Strapi](http://strapi.io/), an open-source [Node.js](https://nodejs.org/) rich framework for building applications and services.
-
-[Strapi](http://strapi.io/) enables developers to focus on writing reusable application logic instead of spending time building infrastructure. It is designed for building practical, production-ready Node.js applications in a matter of hours instead of weeks.
+Strapi enables developers to focus on writing reusable application logic instead of spending time building infrastructure. It is designed for building practical, production-ready Node.js applications in a matter of hours instead of weeks.
## Features
@@ -30,7 +28,7 @@ To reach our goals, we needed to create [Strapi](http://strapi.io/), an open-sou
- **Elegant SQL ORM** featuring relations, lifecycle events, etc.
- **NoSQL support** if you need to plug specific data layers.
-Convinced? [Get started!](./docs/)
+Convinced? [Get started!](http://strapi.io/)
## Support
@@ -46,32 +44,27 @@ Also, you can follow and ping the Strapi team on [Twitter](https://twitter.com/s
### Professional support
-[Wistity](http://wistity.co), the company behind Strapi, provides a full range of solutions to get better results, faster. We're always looking for the next challenge: coaching, consulting, training, certifications, customization, etc. [Drop us an email](mailto:support@wistity.co) or [schedule a meeting](https://calendly.com/wistityhq/) to see how we can help you.
+[Wistity](http://wistity.co), the company behind Strapi, provides a full range of solutions to get better results, faster. We're always looking for the next challenge: coaching, consulting, training, certifications, customization, etc. [Drop us an email](mailto:support@wistity.co) to see how we can help you.
## Badge board
| Package | Version | Dependencies |
|---------|---------|--------------|
-| [strapi](https://github.com/wistityhq/strapi/tree/master/packages/strapi) | [![npm version](https://img.shields.io/npm/v/strapi.svg)](https://www.npmjs.org/package/strapi) | [![npm dependencies](https://david-dm.org/wistityhq/strapi.svg)](https://david-dm.org/wistityhq/strapi) |
-| [strapi-bookshelf](https://github.com/wistityhq/strapi/tree/master/packages/strapi-bookshelf) | [![npm version](https://img.shields.io/npm/v/strapi-bookshelf.svg)](https://www.npmjs.org/package/strapi-bookshelf) | [![npm dependencies](https://david-dm.org/wistityhq/strapi-bookshelf.svg)](https://david-dm.org/wistityhq/strapi-bookshelf) |
-| [strapi-cli](https://github.com/wistityhq/strapi/tree/master/packages/strapi-cli) | [![npm version](https://img.shields.io/npm/v/strapi-cli.svg)](https://www.npmjs.org/package/strapi-cli) | [![npm dependencies](https://david-dm.org/wistityhq/strapi-cli.svg)](https://david-dm.org/wistityhq/strapi-cli) |
-| [strapi-generate](https://github.com/wistityhq/strapi/tree/master/packages/strapi-generate) | [![npm version](https://img.shields.io/npm/v/strapi-generate.svg)](https://www.npmjs.org/package/strapi-generate) | [![npm dependencies](https://david-dm.org/wistityhq/strapi-generate.svg)](https://david-dm.org/wistityhq/strapi-generate) |
-| [strapi-generate-api](https://github.com/wistityhq/strapi/tree/master/packages/strapi-generate-api) | [![npm version](https://img.shields.io/npm/v/strapi-generate-api.svg)](https://www.npmjs.org/package/strapi-generate-api) | [![npm dependencies](https://david-dm.org/wistityhq/strapi-generate-api.svg)](https://david-dm.org/wistityhq/strapi-generate-api) |
-| [strapi-generate-controller](https://github.com/wistityhq/strapi/tree/master/packages/strapi-generate-controller) | [![npm version](https://img.shields.io/npm/v/strapi-generate-controller.svg)](https://www.npmjs.org/package/strapi-generate-controller) | [![npm dependencies](https://david-dm.org/wistityhq/strapi-generate-controller.svg)](https://david-dm.org/wistityhq/strapi-generate-controller) |
-| [strapi-generate-generator](https://github.com/wistityhq/strapi/tree/master/packages/strapi-generate-generator) | [![npm version](https://img.shields.io/npm/v/strapi-generate-generator.svg)](https://www.npmjs.org/package/strapi-generate-generator) | [![npm dependencies](https://david-dm.org/wistityhq/strapi-generate-generator.svg)](https://david-dm.org/wistityhq/strapi-generate-generator) |
-| [strapi-generate-hook](https://github.com/wistityhq/strapi/tree/master/packages/strapi-generate-hook) | [![npm version](https://img.shields.io/npm/v/strapi-generate-hook.svg)](https://www.npmjs.org/package/strapi-generate-hook) | [![npm dependencies](https://david-dm.org/wistityhq/strapi-generate-hook.svg)](https://david-dm.org/wistityhq/strapi-generate-hook) |
-| [strapi-generate-migrations](https://github.com/wistityhq/strapi/tree/master/packages/strapi-generate-migrations) | [![npm version](https://img.shields.io/npm/v/strapi-generate-migrations.svg)](https://www.npmjs.org/package/strapi-generate-migrations) | [![npm dependencies](https://david-dm.org/wistityhq/strapi-generate-migrations.svg)](https://david-dm.org/wistityhq/strapi-generate-migrations) |
-| [strapi-generate-model](https://github.com/wistityhq/strapi/tree/master/packages/strapi-generate-model) | [![npm version](https://img.shields.io/npm/v/strapi-generate-model.svg)](https://www.npmjs.org/package/strapi-generate-model) | [![npm dependencies](https://david-dm.org/wistityhq/strapi-generate-model.svg)](https://david-dm.org/wistityhq/strapi-generate-model) |
-| [strapi-generate-new](https://github.com/wistityhq/strapi/tree/master/packages/strapi-generate-new) | [![npm version](https://img.shields.io/npm/v/strapi-generate-new.svg)](https://www.npmjs.org/package/strapi-generate-new) | [![npm dependencies](https://david-dm.org/wistityhq/strapi-generate-new.svg)](https://david-dm.org/wistityhq/strapi-generate-new) |
-| [strapi-generate-policy](https://github.com/wistityhq/strapi/tree/master/packages/strapi-generate-policy) | [![npm version](https://img.shields.io/npm/v/strapi-generate-policy.svg)](https://www.npmjs.org/package/strapi-generate-policy) | [![npm dependencies](https://david-dm.org/wistityhq/strapi-generate-policy.svg)](https://david-dm.org/wistityhq/strapi-generate-policy) |
-| [strapi-generate-service](https://github.com/wistityhq/strapi/tree/master/packages/strapi-generate-service) | [![npm version](https://img.shields.io/npm/v/strapi-generate-service.svg)](https://www.npmjs.org/package/strapi-generate-service) | [![npm dependencies](https://david-dm.org/wistityhq/strapi-generate-service.svg)](https://david-dm.org/wistityhq/strapi-generate-service) |
-| [strapi-knex](https://github.com/wistityhq/strapi/tree/master/packages/strapi-knex) | [![npm version](https://img.shields.io/npm/v/strapi-knex.svg)](https://www.npmjs.org/package/strapi-knex) | [![npm dependencies](https://david-dm.org/wistityhq/strapi-knex.svg)](https://david-dm.org/wistityhq/strapi-knex) |
-| [strapi-utils](https://github.com/wistityhq/strapi/tree/master/packages/strapi-utils) | [![npm version](https://img.shields.io/npm/v/strapi-utils.svg)](https://www.npmjs.org/package/strapi-utils) | [![npm dependencies](https://david-dm.org/wistityhq/strapi-utils.svg)](https://david-dm.org/wistityhq/strapi-utils) |
-
-## Resources
-
-- [Documentation](./docs)
-- [Legal info](./info)
+| [strapi](./packages/strapi) | [![npm version](https://img.shields.io/npm/v/strapi.svg)](https://www.npmjs.org/package/strapi) | [![npm dependencies](https://david-dm.org/wistityhq/strapi.svg)](https://david-dm.org/wistityhq/strapi) |
+| [strapi-bookshelf](./packages/strapi-bookshelf) | [![npm version](https://img.shields.io/npm/v/strapi-bookshelf.svg)](https://www.npmjs.org/package/strapi-bookshelf) | [![npm dependencies](https://david-dm.org/wistityhq/strapi-bookshelf.svg)](https://david-dm.org/wistityhq/strapi-bookshelf) |
+| [strapi-cli](./packages/strapi-cli) | [![npm version](https://img.shields.io/npm/v/strapi-cli.svg)](https://www.npmjs.org/package/strapi-cli) | [![npm dependencies](https://david-dm.org/wistityhq/strapi-cli.svg)](https://david-dm.org/wistityhq/strapi-cli) |
+| [strapi-generate](./packages/strapi-generate) | [![npm version](https://img.shields.io/npm/v/strapi-generate.svg)](https://www.npmjs.org/package/strapi-generate) | [![npm dependencies](https://david-dm.org/wistityhq/strapi-generate.svg)](https://david-dm.org/wistityhq/strapi-generate) |
+| [strapi-generate-api](./packages/strapi-generate-api) | [![npm version](https://img.shields.io/npm/v/strapi-generate-api.svg)](https://www.npmjs.org/package/strapi-generate-api) | [![npm dependencies](https://david-dm.org/wistityhq/strapi-generate-api.svg)](https://david-dm.org/wistityhq/strapi-generate-api) |
+| [strapi-generate-controller](./packages/strapi-generate-controller) | [![npm version](https://img.shields.io/npm/v/strapi-generate-controller.svg)](https://www.npmjs.org/package/strapi-generate-controller) | [![npm dependencies](https://david-dm.org/wistityhq/strapi-generate-controller.svg)](https://david-dm.org/wistityhq/strapi-generate-controller) |
+| [strapi-generate-generator](./packages/strapi-generate-generator) | [![npm version](https://img.shields.io/npm/v/strapi-generate-generator.svg)](https://www.npmjs.org/package/strapi-generate-generator) | [![npm dependencies](https://david-dm.org/wistityhq/strapi-generate-generator.svg)](https://david-dm.org/wistityhq/strapi-generate-generator) |
+| [strapi-generate-hook](./packages/strapi-generate-hook) | [![npm version](https://img.shields.io/npm/v/strapi-generate-hook.svg)](https://www.npmjs.org/package/strapi-generate-hook) | [![npm dependencies](https://david-dm.org/wistityhq/strapi-generate-hook.svg)](https://david-dm.org/wistityhq/strapi-generate-hook) |
+| [strapi-generate-migrations](./packages/strapi-generate-migrations) | [![npm version](https://img.shields.io/npm/v/strapi-generate-migrations.svg)](https://www.npmjs.org/package/strapi-generate-migrations) | [![npm dependencies](https://david-dm.org/wistityhq/strapi-generate-migrations.svg)](https://david-dm.org/wistityhq/strapi-generate-migrations) |
+| [strapi-generate-model](./packages/strapi-generate-model) | [![npm version](https://img.shields.io/npm/v/strapi-generate-model.svg)](https://www.npmjs.org/package/strapi-generate-model) | [![npm dependencies](https://david-dm.org/wistityhq/strapi-generate-model.svg)](https://david-dm.org/wistityhq/strapi-generate-model) |
+| [strapi-generate-new](./packages/strapi-generate-new) | [![npm version](https://img.shields.io/npm/v/strapi-generate-new.svg)](https://www.npmjs.org/package/strapi-generate-new) | [![npm dependencies](https://david-dm.org/wistityhq/strapi-generate-new.svg)](https://david-dm.org/wistityhq/strapi-generate-new) |
+| [strapi-generate-policy](./packages/strapi-generate-policy) | [![npm version](https://img.shields.io/npm/v/strapi-generate-policy.svg)](https://www.npmjs.org/package/strapi-generate-policy) | [![npm dependencies](https://david-dm.org/wistityhq/strapi-generate-policy.svg)](https://david-dm.org/wistityhq/strapi-generate-policy) |
+| [strapi-generate-service](./packages/strapi-generate-service) | [![npm version](https://img.shields.io/npm/v/strapi-generate-service.svg)](https://www.npmjs.org/package/strapi-generate-service) | [![npm dependencies](https://david-dm.org/wistityhq/strapi-generate-service.svg)](https://david-dm.org/wistityhq/strapi-generate-service) |
+| [strapi-knex](./packages/strapi-knex) | [![npm version](https://img.shields.io/npm/v/strapi-knex.svg)](https://www.npmjs.org/package/strapi-knex) | [![npm dependencies](https://david-dm.org/wistityhq/strapi-knex.svg)](https://david-dm.org/wistityhq/strapi-knex) |
+| [strapi-utils](./packages/strapi-utils) | [![npm version](https://img.shields.io/npm/v/strapi-utils.svg)](https://www.npmjs.org/package/strapi-utils) | [![npm dependencies](https://david-dm.org/wistityhq/strapi-utils.svg)](https://david-dm.org/wistityhq/strapi-utils) |
## Links
View
@@ -1,73 +0,0 @@
-# The Strapi documentation
-
-Prepared by the Strapi team and actively maintained by the contributors, this is the Strapi bible. It is the reference for any user of the platform, who will typically want to keep it close at hand.
-
-## Summary
-
-### Get started
-
-- Installation
- - [Install Node.js](./start/install-nodejs.md)
- - [Install Strapi](./start/install-strapi.md)
-
-- Your first application
- - [Create an application](./start/creation.md)
- - [Anatomy](./start/anatomy.md)
- - [Configuration](./start/configuration.md)
- - [Generate an API](./start/api.md)
- - [Enter the REPL](./start/repl.md)
-
-### Documentation
-
-- The basics
- - [Router](./basics/router.md)
- - [Context](./basics/context.md)
- - [Request](./basics/request.md)
- - [Response](./basics/response.md)
- - [Databases](./basics/databases.md)
- - [Views](./basics/views.md)
-
-- Features
- - [Authentication](./features/authentication.md)
- - [GraphQL](./features/graphql.md)
- - [JSON API](./features/jsonapi.md)
- - [WebSockets](./features/websockets.md)
- - [Internationalization](./features/internationalization.md)
- - [Scheduled tasks](./features/cron.md)
- - [Services](./features/services.md)
- - [Sessions](./features/sessions.md)
-
-- Configuration
- - [Body parser](./configuration/bodyParser.md)
- - [Favicon](./configuration/favicon.md)
- - [Gzip](./configuration/gzip.md)
- - [Logging](./configuration/logging.md)
- - [Response-time](./configuration/responseTime.md)
- - [Public assets](./configuration/static.md)
-
-- Security
- - [Policies](./security/policies.md)
- - [CORS](./security/cors.md)
- - [CSRF](./security/csrf.md)
- - [CSP](./security/csp.md)
- - [HSTS](./security/hsts.md)
- - [P3P](./security/p3p.md)
- - [X-XSS-Protection](./security/xss.md)
- - [X-Frame](./security/xframe.md)
- - [Proxy](./security/proxy.md)
- - [IP filtering](./security/ip.md)
- - [SSL](./security/ssl.md)
-
-- SQL databases
- - [Models](./sql/models.md)
- - [Migrations](./sql/migrations.md)
- - [Query builder](./sql/queries.md)
- - [Raw](./sql/raw.md)
- - [Interfaces](./sql/interfaces.md)
- - [SQL ORM](./sql/orm.md)
-
-- Advanced usage
- - [Lifecycle events](./advanced/events.md)
- - [Error handling](./advanced/errors.md)
- - [Custom generators](./advanced/generators.md)
- - [Custom hooks](./advanced/hooks.md)
@@ -1,44 +0,0 @@
----
-title: Body parser
----
-
-The "body parser" extracts the entire body portion of an incoming request stream and exposes it as something easier to interface with. It will most likely do what you want and save you the trouble.
-
-## Configuration
-
-Configuration:
-
-- Key: `parser`
-- Environment: `development`
-- Location: `./config/environments/development/server.json`
-- Type: `object`
-
-Example:
-
-```js
-{
- "parser": {
- "encode": "utf-8",
- "formLimit": "56kb",
- "jsonLimit": "1mb",
- "strict": true,
- "extendTypes": {
- "json": [
- "application/x-javascript"
- ]
- }
- }
-}
-```
-
-Options:
-
-- `encode` (string): Requested encoding.
-- `formLimit` (string): Limit of the urlencoded body. If the body ends up being larger than this limit, a 413 error code is returned.
-- `jsonLimit` (string): Limit of the JSON body.
-- `strict` (boolean): When set to `true`, JSON parser will only accept arrays and objects.
-- `extendTypes` (array): Support extend types.
-
-Notes:
-
-- Set to `false` to disable the body parser (not recommended).
@@ -1,34 +0,0 @@
----
-title: Favicon
----
-
-A favicon is a file containing one small icon, most commonly 16×16 pixels, for your website.
-
-## Configuration
-
-Configuration:
-
-- Key: `favicon`
-- Environment: all
-- Location: `./config/general.json`
-- Type: `object`
-
-Example:
-
-```js
-{
- "favicon": {
- "path": "favicon.ico",
- "maxAge": 86400000
- }
-}
-```
-
-Options:
-
-- `path` (string): Relative path for the favicon to use from the application root directory.
-- `maxAge` (integer): Cache-control max-age directive. Set to pass the cache-control in ms.
-
-Notes:
-
-- Set to `false` to disable the favicon feature.
@@ -1,30 +0,0 @@
----
-title: Gzip
----
-
-Compression is a simple, effective way to save bandwidth and speed up your site.
-
-Gzip performs best on text-based assets: CSS, JavaScript, HTML. All modern browsers support Gzip compression and will automatically request it.
-
-The best part is that enabling Gzip is one of the simplest and highest payoff optimizations to implement-- sadly, many people still forget to implement it.
-
-## Configuration
-
-Configuration:
-
-- Key: `gzip`
-- Environment: `development`
-- Location: `./config/environments/development/server.json`
-- Type: `boolean`
-
-Example:
-
-```js
-{
- "gzip": true
-}
-```
-
-Notes:
-
-- Set to `false` to disable Gzip compression.
@@ -1,115 +0,0 @@
----
-title: Logging
----
-
-Strapi comes with a simple and useful built-in logger. Its usage is purposely very similar to `console.log()`, but with a handful of extra features; namely support for multiple log levels with colorized, prefixed console output.
-
-## Configuration
-
-Configuration:
-
-- Key: `logger`
-- Environment: `development`
-- Location: `./config/environments/development/server.json`
-- Type: `boolean`
-
-Example:
-
-```js
-{
- "logger": true
-}
-```
-
-Notes:
-
-- Set to `false` to disable the lifecyle and request logs.
-
-## Usage
-
-The logger is accessible through the `strapi` object directly with `strapi.log`.
-
-You can work with this logger in the same way that you work with the default logger:
-
-```js
-strapi.log.info('Logs work!');
-```
-
-### Logging with Metadata
-
-In addition to logging string messages, the logger will also optionally log additional JSON metadata objects. Adding metadata is simple:
-
-```js
-strapi.log.info('Test log message', {
- anything: 'This is metadata'
-});
-```
-
-### String interpolation
-
-The log method provides the same string interpolation methods like `util.format`.
-
-This allows for the following log messages.
-
-```js
-strapi.log.info('test message %s', 'my string');
-// => info: test message my string
-```
-
-```js
-strapi.log.info('test message %d', 123);
-// => info: test message 123
-```
-
-```js
-strapi.log.info('test message %j', {
- number: 123
-}, {});
-// => info: test message {"number":123}
-// => meta = {}
-```
-
-```js
-strapi.log.info('test message %s, %s', 'first', 'second', {
- number: 123
-});
-// => info: test message first, second
-// => meta = {number: 123}
-```
-
-```js
-strapi.log.info('test message', 'first', 'second', {
- number: 123
-});
-// => info: test message first second
-// => meta = {number: 123}
-```
-
-```js
-strapi.log.info('test message %s, %s', 'first', 'second', {
- number: 123
-}, function() {});
-// => info: test message first, second
-// => meta = {number: 123}
-// => callback = function() {}
-```
-
-```js
-strapi.log.info('test message', 'first', 'second', {
- number: 123
-}, function() {});
-// => info: test message first second
-// => meta = {number: 123}
-// => callback = function() {}
-```
-
-### Logging levels
-
-Setting the level for your logging message can be accomplished by using the level specified methods defined.
-
-```js
-strapi.log.debug('This is a debug log');
-strapi.log.info('This is an info log');
-strapi.log.warn('This is a warning log');
-strapi.log.error('This is an error log');
-```
Oops, something went wrong.

0 comments on commit 5a580dd

Please sign in to comment.