-
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.
cache file system and permissions fixed Log system added
- Loading branch information
serdarsen
committed
Apr 29, 2018
1 parent
e4807ee
commit 160d9e2
Showing
5 changed files
with
102 additions
and
32 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/usr/bin/env python3 | ||
|
||
# This file is part of UBrightnessController | ||
|
||
# Copyright © 2018 Serdar ŞEN <[email protected]> | ||
|
||
# This program is free software; you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation; either version 2 of the License, or | ||
# (at your option) any later version. | ||
|
||
class Log(): | ||
|
||
logErrorOn = True | ||
logDebugOn = False | ||
logInfoOn = True | ||
|
||
ERROR_TAG = "Log e: " | ||
DEBUG_TAG = "Log d: " | ||
INFO_TAG = "Log i: " | ||
|
||
#prints error logs | ||
@staticmethod | ||
def e(TAG, msg): | ||
if (Log.logErrorOn): | ||
print(Log.ERROR_TAG + TAG + "; " + msg) | ||
|
||
#prints debug logs | ||
@staticmethod | ||
def d(TAG, msg): | ||
if (Log.logDebugOn): | ||
print(Log.DEBUG_TAG + TAG + "; " + msg) | ||
|
||
|
||
#prints info logs | ||
@staticmethod | ||
def i(TAG, msg): | ||
if (Log.logInfoOn): | ||
print(Log.INFO_TAG + TAG + "; " + msg) |
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 was deleted.
Oops, something went wrong.