mobiletto 1.0.29 → 1.0.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +9 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -17,7 +17,7 @@ Today the supported drivers are:
17
17
  * [Mobiletto on npm](https://www.npmjs.com/package/mobiletto)
18
18
 
19
19
  ## TLDR
20
- A simple CRUD example using the mobiletto `s3` driver.
20
+ A simple example using the mobiletto `s3` driver.
21
21
 
22
22
  This code would run the same if the driver were `local`.
23
23
 
@@ -54,6 +54,7 @@ This code would run the same if the driver were `local`.
54
54
  * [Transparent encryption](#Transparent-encryption)
55
55
  * [Key rotation](#Key-rotation)
56
56
  * [Driver interface](#Driver-interface)
57
+ * [Logging](#Logging)
57
58
  ----
58
59
  ## Basic usage
59
60
  const { mobiletto } = require('mobiletto')
@@ -301,3 +302,10 @@ The object that the storageClient function returns must define these functions:
301
302
  // Remove a file, or recursively delete a directory
302
303
  // returns a string of a single path removed, or an array of multiple paths removed
303
304
  async remove (path, recursive = false, quiet = false)
305
+
306
+ ## Logging
307
+ Mobiletto uses the winston logging library. Set the log level with the `MOBILETTO_LOG_LEVEL` environment variable.
308
+ The default level is `warn`. The most verbose level is `silly`, although currently mobiletto does not log at levels
309
+ below `debug`
310
+
311
+ MOBILETTO_LOG_LEVEL=silly
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mobiletto",
3
- "version": "1.0.29",
3
+ "version": "1.0.30",
4
4
  "description": "A storage abstraction layer",
5
5
  "main": "index.js",
6
6
  "author": "Jonathan Cobb",