1
0
Fork 0

misc: Rename the category to blend in with the pharo naming.

This commit is contained in:
Holger Hans Peter Freyther 2013-02-10 12:46:34 +01:00
parent 3f3d1d9940
commit 4568b95c94
2 changed files with 15 additions and 15 deletions

View File

@ -18,42 +18,42 @@
Object extend [ Object extend [
logManager [ logManager [
<category: '*osmo-logging-core'> <category: '*OsmoLogging-Core'>
^ Osmo.LogManager default ^ Osmo.LogManager default
] ]
logDataContext: aData area: anArea [ logDataContext: aData area: anArea [
<category: '*osmo-logging-core'> <category: '*OsmoLogging-Core'>
(self logManager) (self logManager)
context: 'data' value: aData. context: 'data' value: aData.
] ]
logDebug: aMessage area: anArea [ logDebug: aMessage area: anArea [
<category: '*osmo-logging-core'> <category: '*OsmoLogging-Core'>
(self logManager) (self logManager)
log: (LogEntry withMsg: aMessage level: LogLevel debug area: anArea context: self) log: (LogEntry withMsg: aMessage level: LogLevel debug area: anArea context: self)
] ]
logInfo: aMessage area: anArea [ logInfo: aMessage area: anArea [
<category: '*osmo-logging-core'> <category: '*OsmoLogging-Core'>
(self logManager) (self logManager)
log: (LogEntry withMsg: aMessage level: LogLevel info area: anArea context: self) log: (LogEntry withMsg: aMessage level: LogLevel info area: anArea context: self)
] ]
logNotice: aMessage area: anArea [ logNotice: aMessage area: anArea [
<category: '*osmo-logging-core'> <category: '*OsmoLogging-Core'>
(self logManager) (self logManager)
log: (LogEntry withMsg: aMessage level: LogLevel notice area: anArea context: self) log: (LogEntry withMsg: aMessage level: LogLevel notice area: anArea context: self)
] ]
logError: aMessage area: anArea [ logError: aMessage area: anArea [
<category: '*osmo-logging-core'> <category: '*OsmoLogging-Core'>
(self logManager) (self logManager)
log: (LogEntry withMsg: aMessage level: LogLevel error area: anArea context: self) log: (LogEntry withMsg: aMessage level: LogLevel error area: anArea context: self)
] ]
logException: aMessage area: anArea [ logException: aMessage area: anArea [
<category: '*osmo-logging-exception'> <category: '*OsmoLogging-Core'>
(self logManager) (self logManager)
exception: (LogEntry withMsg: aMessage exception: (LogEntry withMsg: aMessage
level: LogLevel error level: LogLevel error
@ -64,7 +64,7 @@ Object extend [
Object subclass: LogEntry [ Object subclass: LogEntry [
| level ctx area msg | | level ctx area msg |
<category: 'osmo-logging-core'> <category: 'OsmoLogging-Core'>
<comment: 'I represent a log entry and hold the text, level, area'> <comment: 'I represent a log entry and hold the text, level, area'>
LogEntry class >> withMsg: aMsg level: anLevel area: anArea context: aContext [ LogEntry class >> withMsg: aMsg level: anLevel area: anArea context: aContext [
@ -110,7 +110,7 @@ Object subclass: LogEntry [
] ]
Object subclass: LogLevel [ Object subclass: LogLevel [
<category: 'osmo-logging-core'> <category: 'OsmoLogging-Core'>
<comment: 'I represent the available levels for log messages'> <comment: 'I represent the available levels for log messages'>
LogLevel class >> debug [ LogLevel class >> debug [
@ -132,7 +132,7 @@ Object subclass: LogLevel [
Object subclass: LogArea [ Object subclass: LogArea [
| name enabled level | | name enabled level |
<category: 'osmo-logging-core'> <category: 'OsmoLogging-Core'>
<comment: 'I represent a LogArea'> <comment: 'I represent a LogArea'>
LogArea class >> defaultForArea: aSymbol [ LogArea class >> defaultForArea: aSymbol [
@ -191,7 +191,7 @@ Object subclass: LogArea [
] ]
Object subclass: LogTarget [ Object subclass: LogTarget [
<category: 'osmo-logging-core'> <category: 'OsmoLogging-Target'>
<comment: 'I will filter and then output the log message'> <comment: 'I will filter and then output the log message'>
@ -207,7 +207,7 @@ Object subclass: LogTarget [
] ]
LogTarget subclass: LogTranscriptTarget [ LogTarget subclass: LogTranscriptTarget [
<category: 'osmo-logging-target'> <category: 'OsmoLogging-Target'>
<comment: 'I log to the Transcript buffer'> <comment: 'I log to the Transcript buffer'>
print: anEntry [ print: anEntry [
@ -223,7 +223,7 @@ LogTarget subclass: LogTranscriptTarget [
] ]
Object subclass: LogFilter [ Object subclass: LogFilter [
<category: 'osmo-logging-core'> <category: 'OsmoLogging-Core'>
<comment: 'I filter based on mood, context and Bangkok Law'> <comment: 'I filter based on mood, context and Bangkok Law'>
filter: anEntry [ filter: anEntry [
@ -236,7 +236,7 @@ Object subclass: LogFilter [
Object subclass: LogManager [ Object subclass: LogManager [
| target filter areas | | target filter areas |
<category: 'osmo-logging-core'> <category: 'OsmoLogging-Core'>
<comment: 'I handle the actual log invocation'> <comment: 'I handle the actual log invocation'>
Log := nil. Log := nil.

View File

@ -19,7 +19,7 @@
LogTarget subclass: LogTargetSyslog [ LogTarget subclass: LogTargetSyslog [
| prefix | | prefix |
<comment: 'I can log everything to the syslog.'> <comment: 'I can log everything to the syslog.'>
<category: 'osmo-logging-syslog'> <category: 'OsmoLogging-Syslog'>
LogMap := nil. LogMap := nil.