YaST2 OS Repair. Automatic error detection & repair tool for Linux. |
OSRLogFile.ycp |
YaST2 OS Repair. Automatic error detection & repair tool for Linux. | |
This module has an unstable interface. |
Global FunctionsLocal VariablesLocal Functions |
local
file
->
string
The name for the log file
global
GetTmpDir ()
->
string
Returns the path of the global temporary directory, e.g. "/tmp/YaST2-02274".
- Return value:
-
The path of the temporary directory.
- Example
-
string tmpdir = GetTmpDir();
local
SetFile (string new_file)
->
boolean
Tests if the specified logfile exists, is readable, writable, ... If the specified file not exists, it will be created with the correct file permissions.
For internal use only.
- Parameters:
-
new_file
- Return value:
-
True if the specified logfile was created/set up successfully.
global
OSRLogFile ()
->
void
Constructor.
global
GetLogFileName ()
->
string
This function returns the name of the global log file.
- Return value:
-
The name of the global log file.
global
Add (string the_string)
->
boolean
Writes the specified string to the end of the log file.
- Parameters:
-
the_string
- Return value:
-
True if the specified string was successfully written