X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/29a3b2869c0075fc75e8ccc66fc1d9c4c8bf6a85..a1b0cdb824467c344c252bc5dcd5f8103ba9ed40:/include/xbt/log.h diff --git a/include/xbt/log.h b/include/xbt/log.h index 6c7991f5c3..a65699c37e 100644 --- a/include/xbt/log.h +++ b/include/xbt/log.h @@ -1,6 +1,6 @@ /* log - a generic logging facility in the spirit of log4j */ -/* Copyright (c) 2004-2018. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2004-2019. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -297,10 +297,10 @@ XBT_PUBLIC void xbt_log_additivity_set(xbt_log_category_t cat, int additivity); * * This layout is not as flexible as the pattern one */ -XBT_PUBLIC xbt_log_layout_t xbt_log_layout_simple_new(char* arg); -XBT_PUBLIC xbt_log_layout_t xbt_log_layout_format_new(char* arg); -XBT_PUBLIC xbt_log_appender_t xbt_log_appender_file_new(char* arg); -XBT_PUBLIC xbt_log_appender_t xbt_log_appender2_file_new(char* arg, int roll); +XBT_PUBLIC xbt_log_layout_t xbt_log_layout_simple_new(const char* arg); +XBT_PUBLIC xbt_log_layout_t xbt_log_layout_format_new(const char* arg); +XBT_PUBLIC xbt_log_appender_t xbt_log_appender_file_new(const char* arg); +XBT_PUBLIC xbt_log_appender_t xbt_log_appender2_file_new(const char* arg, int roll); /* ********************************** */ /* Functions that you shouldn't call */ @@ -644,5 +644,11 @@ extern xbt_log_layout_t xbt_log_default_layout; */ #define XBT_HERE(...) XBT_LOG(xbt_log_priority_trace, "-- was here" __VA_ARGS__) +/** @ingroup XBT_log + * @hideinitializer + * @brief Log help messages through category xbt.xbt_help. + */ +#define XBT_HELP(...) XBT_CINFO(xbt_help, __VA_ARGS__) + SG_END_DECL() #endif /* ! _XBT_LOG_H_ */