{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2025,12,12]],"date-time":"2025-12-12T09:31:09Z","timestamp":1765531869522,"version":"3.48.0"},"reference-count":63,"publisher":"Association for Computing Machinery (ACM)","issue":"1","funder":[{"DOI":"10.13039\/501100001809","name":"National Natural Science Foundation of China","doi-asserted-by":"crossref","award":["62302347 and 62141221"],"award-info":[{"award-number":["62302347 and 62141221"]}],"id":[{"id":"10.13039\/501100001809","id-type":"DOI","asserted-by":"crossref"}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["ACM Trans. Softw. Eng. Methodol."],"published-print":{"date-parts":[[2026,1,31]]},"abstract":"<jats:p>Software logs serve as valuable resources for understanding system running and are extensively used in diverse software maintenance tasks. Logs are generated by logging statements in the code, which are written by developers. Therefore, logs may reflect developers\u2019 sentiments about the described situations. Consequently, when developers and system administrators read logs, the sentiments embedded in logs may influence their understanding. Although the sentiments associated with logs can convey valuable information, such information is not leveraged in research and practice. Previous research has primarily relied on verbosity levels of logs to gauge sentiments, which does not really capture the sentiments and emotions perceived by humans.<\/jats:p>\n                  <jats:p>To bridge this gap, in this article, we first conduct an exploratory study to investigate sentiments and emotions that are communicated within logs. Our study encompasses five anomaly log datasets from LogHub and a dataset involving eight open-source Apache Java projects. We find that 8% of the logs express sentiments and emotions though developers are suggested to write them in an objective way. While most log messages might not explicitly express sentiments and emotions, they can still implicitly evoke sentiments and emotions in those who read them. Therefore, we exploit issue reports referencing logs to capture such sentiments and emotions. In these issue reports, 47.5% exhibit emotions, with 54.7% of those emotions being related to logs and 8.1% directly addressing logs. Furthermore, we demonstrate the potential of leveraging sentiment analysis to complement verbosity levels in logs, showcasing how sentiment information can offer novel insights and enhance log analysis. Specifically, by applying automatic tools, we identify 41 issue reports (9.8% on average) with negative sentiment and 55 reports (13.2% on average) with negative emotions, all referencing INFO or DEBUG logs (i.e., low severity). After manually verifying and filtering exception logs, we uncover three main concerns from 22 critical instances.<\/jats:p>","DOI":"10.1145\/3723355","type":"journal-article","created":{"date-parts":[[2025,3,14]],"date-time":"2025-03-14T11:30:16Z","timestamp":1741951816000},"page":"1-28","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":0,"title":["Enhancing Log Sentiments: An Exploratory Study of Sentiments and Emotions with Software Logs"],"prefix":"10.1145","volume":"35","author":[{"ORCID":"https:\/\/orcid.org\/0009-0004-5674-8752","authenticated-orcid":false,"given":"Xiaohui","family":"Wang","sequence":"first","affiliation":[{"name":"School of Computer Science, Wuhan University, Wuhan, China"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-3390-4079","authenticated-orcid":false,"given":"Youshuai","family":"Tan","sequence":"additional","affiliation":[{"name":"School of Computer Science, Wuhan University, Wuhan, China"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-0803-5609","authenticated-orcid":false,"given":"Zishuo","family":"Ding","sequence":"additional","affiliation":[{"name":"The Hong Kong University of Science and Technology (Guangzhou), Guangzhou, China"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-7410-9146","authenticated-orcid":false,"given":"Jinfu","family":"Chen","sequence":"additional","affiliation":[{"name":"School of Computer Science, Wuhan University, Wuhan, China"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-2968-3496","authenticated-orcid":false,"given":"Jifeng","family":"Xuan","sequence":"additional","affiliation":[{"name":"School of Computer Science, Wuhan University, Wuhan, China"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-6222-7444","authenticated-orcid":false,"given":"Weiyi","family":"Shang","sequence":"additional","affiliation":[{"name":"Department of Electrical and Computer Engineering, University of Waterloo, Waterloo, Ontario, Canada"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"320","published-online":{"date-parts":[[2025,12,11]]},"reference":[{"key":"e_1_3_2_2_2","first-page":"26","volume-title":"An Introduction to Categorical Data Analysis","author":"Agresti Alan","year":"2012","unstructured":"Alan Agresti. 2012. An Introduction to Categorical Data Analysis. John Wiley & Sons, 26\u201327."},{"key":"e_1_3_2_3_2","first-page":"21","volume-title":"An Introduction to Categorical Data Analysis","author":"Agresti Alan","year":"2012","unstructured":"Alan Agresti. 2012. An Introduction to Categorical Data Analysis. John Wiley & Sons, 21\u201325."},{"key":"e_1_3_2_4_2","first-page":"34","volume-title":"An Introduction to Categorical Data Analysis","author":"Agresti Alan","year":"2012","unstructured":"Alan Agresti. 2012. An Introduction to Categorical Data Analysis. John Wiley & Sons, 34\u201338."},{"key":"e_1_3_2_5_2","doi-asserted-by":"publisher","DOI":"10.1109\/DSN48987.2021.00037"},{"key":"e_1_3_2_6_2","doi-asserted-by":"publisher","DOI":"10.1109\/ICPC.2009.5090066"},{"key":"e_1_3_2_7_2","doi-asserted-by":"publisher","DOI":"10.1145\/3180155.3182519"},{"key":"e_1_3_2_8_2","doi-asserted-by":"publisher","DOI":"10.1109\/ACIIW.2017.8272591"},{"key":"e_1_3_2_9_2","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.2021.3071473"},{"key":"e_1_3_2_10_2","doi-asserted-by":"publisher","DOI":"10.1007\/s10664-020-09893-w"},{"key":"e_1_3_2_11_2","doi-asserted-by":"publisher","DOI":"10.1109\/ASE.2019.00068"},{"key":"e_1_3_2_12_2","doi-asserted-by":"publisher","DOI":"10.1145\/3338906.3338977"},{"key":"e_1_3_2_13_2","doi-asserted-by":"publisher","DOI":"10.1109\/ICSE.2019.00069"},{"key":"e_1_3_2_14_2","doi-asserted-by":"publisher","DOI":"10.1145\/2652524.2652541"},{"key":"e_1_3_2_15_2","doi-asserted-by":"publisher","DOI":"10.1145\/3194932.3194935"},{"key":"e_1_3_2_16_2","doi-asserted-by":"publisher","DOI":"10.1145\/3133956.3134015"},{"key":"e_1_3_2_17_2","doi-asserted-by":"publisher","DOI":"10.1109\/ICDM.2009.60"},{"key":"e_1_3_2_18_2","doi-asserted-by":"publisher","DOI":"10.1145\/2591062.2591175"},{"key":"e_1_3_2_19_2","doi-asserted-by":"publisher","DOI":"10.1145\/3183428.3183436"},{"key":"e_1_3_2_20_2","doi-asserted-by":"publisher","DOI":"10.1145\/3236024.3236083"},{"key":"e_1_3_2_21_2","first-page":"1","volume-title":"Proceedings of the 37th IEEE\/ACM International Conference on Automated Software Engineering","author":"Mohammad Imran Mia","unstructured":"Mia Mohammad Imran, Yashasvi Jain, Preetha Chatterjee, and Kostadin Damevski. 2022. Data augmentation for improving emotion recognition in software engineering communication. In Proceedings of the 37th IEEE\/ACM International Conference on Automated Software Engineering, 1\u201313."},{"key":"e_1_3_2_22_2","doi-asserted-by":"publisher","DOI":"10.1145\/3297280.3297455"},{"key":"e_1_3_2_23_2","doi-asserted-by":"publisher","DOI":"10.1145\/3167132.3167296"},{"key":"e_1_3_2_24_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.jss.2018.08.030"},{"key":"e_1_3_2_25_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.jss.2015.02.055"},{"key":"e_1_3_2_26_2","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.2020.2970422"},{"key":"e_1_3_2_27_2","doi-asserted-by":"publisher","DOI":"10.1007\/s10664-016-9456-2"},{"key":"e_1_3_2_28_2","doi-asserted-by":"publisher","DOI":"10.1109\/DSN.2005.50"},{"key":"e_1_3_2_29_2","doi-asserted-by":"publisher","DOI":"10.1109\/ICDM.2007.46"},{"key":"e_1_3_2_30_2","doi-asserted-by":"publisher","DOI":"10.1007\/s10664-020-09866-z"},{"issue":"12","key":"e_1_3_2_31_2","first-page":"4986","article-title":"Locating performance regression root causes in the field operations of web-based systems: An experience report","volume":"48","author":"Liao Lizhi","year":"2022","unstructured":"Lizhi Liao, Jinfu Chen, Heng Li, Yi Zeng, Weiyi Shang, Catalin Sporea, Andrei Toma, and Sarah Sajedi. 2022. Locating performance regression root causes in the field operations of web-based systems: An experience report. IEEE Transactions on Software Engineering 48, 12 (2022), 4986\u20135006.","journal-title":"IEEE Transactions on Software Engineering"},{"key":"e_1_3_2_32_2","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1145\/3490388","article-title":"Opinion mining for software development: A systematic literature review","volume":"31","author":"Lin Bin","year":"2022","unstructured":"Bin Lin, Nathan Cassee, Alexander Serebrenik, Gabriele Bavota, Nicole Novielli, and Michele Lanza. 2022. Opinion mining for software development: A systematic literature review. ACM Transactions on Software Engineering and Methodology 31, 3 (2022), 1\u201341.","journal-title":"ACM Transactions on Software Engineering and Methodology"},{"key":"e_1_3_2_33_2","doi-asserted-by":"publisher","DOI":"10.1145\/3180155.3180195"},{"key":"e_1_3_2_34_2","doi-asserted-by":"publisher","DOI":"10.1145\/3533767.3534379"},{"key":"e_1_3_2_35_2","doi-asserted-by":"publisher","DOI":"10.5555\/1855840.1855864"},{"key":"e_1_3_2_36_2","doi-asserted-by":"publisher","DOI":"10.1145\/2901739.2901752"},{"key":"e_1_3_2_37_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.dss.2012.05.022"},{"key":"e_1_3_2_38_2","doi-asserted-by":"publisher","DOI":"10.1007\/s10664-017-9526-0"},{"key":"e_1_3_2_39_2","doi-asserted-by":"publisher","DOI":"10.1145\/2597073.2597086"},{"key":"e_1_3_2_40_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.infsof.2022.107018"},{"key":"e_1_3_2_41_2","first-page":"303","volume-title":"Proceedings of the 2015 IEEE\/ACM 12th Working Conference on Mining Software Repositories","author":"Ortu Marco","unstructured":"Marco Ortu, Bram Adams, Giuseppe Destefanis, Parastou Tourani, Michele Marchesi, and Roberto Tonelli. 2015. Are bullies more productive? Empirical study of affectiveness vs. issue fixing time. In Proceedings of the 2015 IEEE\/ACM 12th Working Conference on Mining Software Repositories, 303\u2013313."},{"key":"e_1_3_2_42_2","volume-title":"Emotions in Social Psychology: Essential Readings","author":"W Gerrod Parrott.","year":"2001","unstructured":"W Gerrod Parrott. 2001. Emotions in Social Psychology: Essential Readings. Psychology Press."},{"key":"e_1_3_2_43_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.infsof.2019.08.002"},{"key":"e_1_3_2_44_2","volume-title":"Logging and Log Management: the Authoritative Guide to Understanding the Concepts Surrounding Logging and Log Management","author":"Schmidt Kevin","year":"2012","unstructured":"Kevin Schmidt, Chris Phillips, and Anton Chuvakin. 2012. Logging and Log Management: the Authoritative Guide to Understanding the Concepts Surrounding Logging and Log Management. Newnes."},{"key":"e_1_3_2_45_2","doi-asserted-by":"publisher","DOI":"10.1080\/01434630408666532"},{"key":"e_1_3_2_46_2","doi-asserted-by":"publisher","DOI":"10.1037\/0022-3514.52.6.1061"},{"key":"e_1_3_2_47_2","doi-asserted-by":"publisher","DOI":"10.1093\/ptj\/85.3.257"},{"key":"e_1_3_2_48_2","doi-asserted-by":"publisher","DOI":"10.1109\/ICSME.2019.00017"},{"key":"e_1_3_2_49_2","first-page":"1083","volume-title":"Proceedings of the 4th International Conference on Language Resources and Evaluation, Vol","volume":"4","author":"Strapparava Carlo","year":"2004","unstructured":"Carlo Strapparava and Alessandro Valitutti. 2004. Wordnet affect: an affective extension of wordnet. In Proceedings of the 4th International Conference on Language Resources and Evaluation, Vol. 4, 1083\u20131086."},{"key":"e_1_3_2_50_2","doi-asserted-by":"publisher","DOI":"10.1109\/TDSC.2020.3037903"},{"key":"e_1_3_2_51_2","doi-asserted-by":"publisher","DOI":"10.1109\/ICSM.2013.22"},{"key":"e_1_3_2_52_2","doi-asserted-by":"publisher","DOI":"10.1002\/asi.21416"},{"key":"e_1_3_2_53_2","doi-asserted-by":"publisher","DOI":"10.1145\/3597503.3639155"},{"key":"e_1_3_2_54_2","doi-asserted-by":"publisher","DOI":"10.1145\/1629575.1629587"},{"key":"e_1_3_2_55_2","doi-asserted-by":"publisher","DOI":"10.1145\/3019612.3019788"},{"key":"e_1_3_2_56_2","doi-asserted-by":"publisher","DOI":"10.1145\/1736020.1736038"},{"key":"e_1_3_2_57_2","doi-asserted-by":"publisher","DOI":"10.1109\/ICSE.2012.6227202"},{"key":"e_1_3_2_58_2","doi-asserted-by":"publisher","DOI":"10.1145\/2110356.2110360"},{"key":"e_1_3_2_59_2","doi-asserted-by":"publisher","DOI":"10.1145\/3465332.3470873"},{"key":"e_1_3_2_60_2","doi-asserted-by":"publisher","DOI":"10.1145\/3338906.3338931"},{"key":"e_1_3_2_61_2","doi-asserted-by":"publisher","DOI":"10.1145\/3338906.3338961"},{"key":"e_1_3_2_62_2","doi-asserted-by":"publisher","DOI":"10.1109\/ISSRE59848.2023.00071"},{"key":"e_1_3_2_63_2","doi-asserted-by":"publisher","DOI":"10.1109\/ICSE-SEIP.2019.00021"},{"key":"e_1_3_2_64_2","doi-asserted-by":"publisher","DOI":"10.1148\/radiol.2263011500"}],"container-title":["ACM Transactions on Software Engineering and Methodology"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3723355","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,12,12]],"date-time":"2025-12-12T09:27:44Z","timestamp":1765531664000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3723355"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,12,11]]},"references-count":63,"journal-issue":{"issue":"1","published-print":{"date-parts":[[2026,1,31]]}},"alternative-id":["10.1145\/3723355"],"URL":"https:\/\/doi.org\/10.1145\/3723355","relation":{},"ISSN":["1049-331X","1557-7392"],"issn-type":[{"type":"print","value":"1049-331X"},{"type":"electronic","value":"1557-7392"}],"subject":[],"published":{"date-parts":[[2025,12,11]]},"assertion":[{"value":"2024-08-29","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2025-03-06","order":2,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2025-12-11","order":3,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}