Jump to content

LOG.SYS: Difference between revisions

From EDM2
Ak120 (talk | contribs)
Created page with "This driver enables logging of system error messages and some application error messages. note: You need also logdaem.exe DEVICE=C:\OS2\LOG.SYS <parameters> '''Parameters:'..."
 
Ak120 (talk | contribs)
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
This driver enables logging of system error messages and some application error messages.
Error Logging Device Driver


note: You need also logdaem.exe
The OS/2 Logging Facility device driver enables in conjunction with [[LOGDAEM.EXE]] the logging of system error messages and some application error messages.
  DEVICE=C:\OS2\LOG.SYS <parameters>
  DEVICE=C:\OS2\LOG.SYS <parameters>


'''Parameters:'''
==Parameters==
* /E:value - This sets up the log buffer size. Value can be in the range from 4 to 64. Default = 8, This value is expressed in kB.
* /A:value - This is the size of the alarm buffer. Value can be in the range from 4 to 64. Default = 8, This value is expressed in kB.
* /OFF - If set to OFF the driver is installed, but the logging of error messages is turned off. You can turn it on again with the program [[SYSLOG.EXE]].


* /E:value
==Examples==
This sets up the log buffer size.
To install the log driver with a log buffer size of 48 Kbytes and an alarm buffer of 16 kB, add this line to your config.sys file:  
Value can be in the range from 4 to 64 .
Default = 8
This value is expressed in Kbytes.
 
* /A:value
This is the size of the alarm buffer.
Value can be in the range from 4 to 64 .
Default = 8
This value is expressed in Kbytes.
 
* /OFF
If set to OFF the driver is installed but the logging of error messages is turned off. You can turn it on again with the program Syslog.
 
See the examples below.
 
To install the log driver with a log buffer size of 48 Kbytes and an alarm buffer of 16 Kbytes, add this line to your config.sys file:  
  DEVICE=C:\OS2\LOG.SYS /E:48 /A:16
  DEVICE=C:\OS2\LOG.SYS /E:48 /A:16
To install the log driver but turn it off after initialization use this line:  
To install the log driver but turn it off after initialization use this line:  
  DEVICE=C:\OS2\LOG.SYS /OFF
  DEVICE=C:\OS2\LOG.SYS /OFF
 
;NOTE: LOG.SYS has its limitations. It will not log an application error unless the application has been written to make use of LOG.SYS. Some routine system errors will not log either because OS/2 opens an error message box on screen to report these.
'''NOTE:''' LOG.SYS has its limitations. It will not log an application error unless the application has been written to make use of LOG.SYS. Some routine system errors will not log either because OS/2 opens an error message box on screen to report these.
 
'''Platform Support:'''
{| class="wikitable"
|-
!OS/2 2.x
!OS/2 3.0
!OS/2 4.0
!OS/2 4.5x
|-
|Yes
|Yes
|Yes
|Yes
|}


[[Category:DEVICE Statements]]
[[Category:DEVICE Statements]]

Latest revision as of 22:51, 18 April 2025

Error Logging Device Driver

The OS/2 Logging Facility device driver enables in conjunction with LOGDAEM.EXE the logging of system error messages and some application error messages.

DEVICE=C:\OS2\LOG.SYS <parameters>

Parameters

  • /E:value - This sets up the log buffer size. Value can be in the range from 4 to 64. Default = 8, This value is expressed in kB.
  • /A:value - This is the size of the alarm buffer. Value can be in the range from 4 to 64. Default = 8, This value is expressed in kB.
  • /OFF - If set to OFF the driver is installed, but the logging of error messages is turned off. You can turn it on again with the program SYSLOG.EXE.

Examples

To install the log driver with a log buffer size of 48 Kbytes and an alarm buffer of 16 kB, add this line to your config.sys file:

DEVICE=C:\OS2\LOG.SYS /E:48 /A:16

To install the log driver but turn it off after initialization use this line:

DEVICE=C:\OS2\LOG.SYS /OFF
NOTE
LOG.SYS has its limitations. It will not log an application error unless the application has been written to make use of LOG.SYS. Some routine system errors will not log either because OS/2 opens an error message box on screen to report these.