~xibo-maintainers/xibo/tempel

« back to all changes in this revision

Viewing changes to lib/Service/LogServiceInterface.php

  • Committer: Dan Garner
  • Date: 2015-03-26 14:08:33 UTC
  • Revision ID: git-v1:70d14044444f8dc5d602b99890d59dea46d9470c
Moved web servable files to web folder

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php
2
 
/*
3
 
 * Spring Signage Ltd - http://www.springsignage.com
4
 
 * Copyright (C) 2016 Spring Signage Ltd
5
 
 * (LogServiceInterface.php)
6
 
 */
7
 
 
8
 
 
9
 
namespace Xibo\Service;
10
 
 
11
 
/**
12
 
 * Interface LogServiceInterface
13
 
 * @package Xibo\Service
14
 
 */
15
 
interface LogServiceInterface
16
 
{
17
 
    /**
18
 
     * Log constructor.
19
 
     * @param \Slim\Log $logger
20
 
     * @param string $mode
21
 
     */
22
 
    public function __construct($logger, $mode = 'production');
23
 
 
24
 
    /**
25
 
     * Set the user Id
26
 
     * @param int $userId
27
 
     */
28
 
    public function setUserId($userId);
29
 
 
30
 
    /**
31
 
     * @param $mode
32
 
     * @return mixed
33
 
     */
34
 
    public function setMode($mode);
35
 
 
36
 
    /**
37
 
     * Audit Log
38
 
     * @param string $entity
39
 
     * @param int $entityId
40
 
     * @param string $message
41
 
     * @param string|object|array $object
42
 
     */
43
 
    public function audit($entity, $entityId, $message, $object);
44
 
 
45
 
    /**
46
 
     * @param $sql
47
 
     * @param $params
48
 
     * @return mixed
49
 
     */
50
 
    public function sql($sql, $params);
51
 
 
52
 
    /**
53
 
     * @param string ...$object
54
 
     * @return mixed
55
 
     */
56
 
    public function debug($object);
57
 
 
58
 
    /**
59
 
     * @param ...$object
60
 
     * @return mixed
61
 
     */
62
 
    public function notice($object);
63
 
 
64
 
    /**
65
 
     * @param ...$object
66
 
     * @return mixed
67
 
     */
68
 
    public function info($object);
69
 
 
70
 
    /**
71
 
     * @param ...$object
72
 
     * @return mixed
73
 
     */
74
 
    public function warning($object);
75
 
 
76
 
    /**
77
 
     * @param ...$object
78
 
     * @return mixed
79
 
     */
80
 
    public function error($object);
81
 
 
82
 
    /**
83
 
     * @param ...$object
84
 
     * @return mixed
85
 
     */
86
 
    public function critical($object);
87
 
 
88
 
    /**
89
 
     * @param ...$object
90
 
     * @return mixed
91
 
     */
92
 
    public function alert($object);
93
 
 
94
 
    /**
95
 
     * @param ...$object
96
 
     * @return mixed
97
 
     */
98
 
    public function emergency($object);
99
 
 
100
 
    /**
101
 
     * Resolve the log level
102
 
     * @param string $level
103
 
     * @return int
104
 
     */
105
 
    public static function resolveLogLevel($level);
106
 
}
 
 
b'\\ No newline at end of file'