forked from learningequality/ka-lite
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add log rotation for 30 days - fixes learningequality#4890
- Loading branch information
Benjamin Bach
committed
Apr 18, 2017
1 parent
8bce7a7
commit 20da832
Showing
5 changed files
with
60 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,16 @@ | ||
Logging | ||
======= | ||
|
||
KA Lite application logs are stored in ``~/.kalite/logs/``. When going to daemon | ||
mode using ``kalite start``, all outputs are additionally stored in | ||
``~/.kalite/server.log``, which may contain more crash information for the last | ||
running instance. | ||
|
||
In Python, please always log to ``logging.getLogger(__name__)``! Fore more | ||
information on how logging is setup, refer to ``kalite.settings.base.LOGGING``. | ||
|
||
If you wish to view output from the server, you have a few options: | ||
|
||
* Start the server with ``kalite start --foreground``. This will start the server using CherryPy and a single thread, with output going to your terminal. | ||
* Start the server in development mode ``kalite manage runserver --settings=kalite.project.settings.dev`` (this doesn't start the job scheduler). | ||
* Run the normal mode ``kalite start``, and check ``~/.kalite/server.log`` for output. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters