Add event hook for sending logs to frontend

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer
2019-12-02 00:30:58 +01:00
parent 063be1650e
commit a2963e9fc6
15 changed files with 128 additions and 54 deletions

View File

@@ -7,10 +7,8 @@ https://github.com/photoprism/photoprism/wiki
*/
package api
import "github.com/sirupsen/logrus"
import (
"github.com/photoprism/photoprism/internal/event"
)
var log *logrus.Logger
func init() {
log = logrus.StandardLogger()
}
var log = event.Log