mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[enh] start to work on journals
This commit is contained in:
parent
542528ab05
commit
eef247d34b
2 changed files with 58 additions and 0 deletions
|
@ -1588,3 +1588,15 @@ hook:
|
|||
-d:
|
||||
full: --chdir
|
||||
help: The directory from where the script will be executed
|
||||
|
||||
#############################
|
||||
# Journals #
|
||||
#############################
|
||||
journals:
|
||||
category_help: Manage debug journals
|
||||
actions:
|
||||
|
||||
### domain_list()
|
||||
list:
|
||||
action_help: List journals
|
||||
api: GET /journals
|
||||
|
|
46
src/yunohost/journals.py
Normal file
46
src/yunohost/journals.py
Normal file
|
@ -0,0 +1,46 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
""" License
|
||||
|
||||
Copyright (C) 2016 YunoHost
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as published
|
||||
by the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program; if not, see http://www.gnu.org/licenses
|
||||
|
||||
"""
|
||||
|
||||
""" yunohost_journals.py
|
||||
|
||||
Manage debug journals
|
||||
"""
|
||||
|
||||
import os
|
||||
|
||||
from moulinette.utils.log import getActionLogger
|
||||
|
||||
JOURNALS_PATH = '/var/log/journals/'
|
||||
|
||||
logger = getActionLogger('yunohost.journals')
|
||||
|
||||
|
||||
def journals_list():
|
||||
"""
|
||||
List domains
|
||||
|
||||
Keyword argument:
|
||||
filter -- LDAP filter used to search
|
||||
offset -- Starting number for domain fetching
|
||||
limit -- Maximum number of domain fetched
|
||||
|
||||
"""
|
||||
return {}
|
Loading…
Add table
Reference in a new issue