summaryrefslogtreecommitdiff
path: root/2005/i/robert/src/log/log.cc
diff options
context:
space:
mode:
Diffstat (limited to '2005/i/robert/src/log/log.cc')
-rw-r--r--2005/i/robert/src/log/log.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/2005/i/robert/src/log/log.cc b/2005/i/robert/src/log/log.cc
index 7f65efa..e0607ef 100644
--- a/2005/i/robert/src/log/log.cc
+++ b/2005/i/robert/src/log/log.cc
@@ -44,27 +44,27 @@ Log::operator() (const char *msg, Level level/*info*/) const
}
/// Traduit le niveau de log.
-void
-Log::toString (Level level, std::string &s)
+std::string
+Log::toString (Level level)
{
switch (level)
{
case none:
- s = "none"; break;
+ return "none";
case fatal:
- s = "fatal"; break;
+ return "fatal";
case error:
- s = "error"; break;
+ return "error";
case warning:
- s = "warning"; break;
+ return "warning";
case info:
- s = "info"; break;
+ return "info";
case debug:
- s = "debug"; break;
+ return "debug";
case verydebug:
- s = "verydebug"; break;
+ return "verydebug";
default:
- s = "logunknown"; break;
+ return "logunknown";
}
}